Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
2b2d5e33
Commit
2b2d5e33
authored
7 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
Move function to be in the static functions (and defined that way). No real
code change. Bug 3885
parent
4d851688
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/node_conf.c
+12
-10
12 additions, 10 deletions
src/common/node_conf.c
with
12 additions
and
10 deletions
src/common/node_conf.c
+
12
−
10
View file @
2b2d5e33
...
...
@@ -96,6 +96,7 @@ static struct node_record *
_find_node_record
(
char
*
name
,
bool
test_alias
,
bool
log_missing
);
static
void
_list_delete_config
(
void
*
config_entry
);
static
int
_list_find_config
(
void
*
config_entry
,
void
*
key
);
static
const
char
*
_node_record_hash_identity
(
void
*
item
);
/*
* _build_single_nodeline_info - From the slurm.conf reader, build table,
...
...
@@ -400,6 +401,16 @@ static int _list_find_config (void *config_entry, void *key)
return
0
;
}
/*
* xhash helper function to index node_record per name field
* in node_hash_table
*/
static
const
char
*
_node_record_hash_identity
(
void
*
item
)
{
struct
node_record
*
node_ptr
=
(
struct
node_record
*
)
item
;
return
node_ptr
->
name
;
}
/*
* bitmap2hostlist - given a bitmap, build a hostlist
* IN bitmap - bitmap pointer
...
...
@@ -800,15 +811,6 @@ static struct node_record *_find_node_record (char *name, bool test_alias,
return
NULL
;
}
/*
* xhash helper function to index node_record per name field
* in node_hash_table
*/
const
char
*
node_record_hash_identity
(
void
*
item
)
{
struct
node_record
*
node_ptr
=
(
struct
node_record
*
)
item
;
return
node_ptr
->
name
;
}
/*
* init_node_conf - initialize the node configuration tables and values.
* this should be called before creating any node or configuration
...
...
@@ -988,7 +990,7 @@ extern void rehash_node (void)
struct
node_record
*
node_ptr
=
node_record_table_ptr
;
xhash_free
(
node_hash_table
);
node_hash_table
=
xhash_init
(
node_record_hash_identity
,
node_hash_table
=
xhash_init
(
_
node_record_hash_identity
,
NULL
,
NULL
,
0
);
for
(
i
=
0
;
i
<
node_record_count
;
i
++
,
node_ptr
++
)
{
if
((
node_ptr
->
name
==
NULL
)
||
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment