Skip to content
Snippets Groups Projects
Commit d3dd641d authored by Danny Auble's avatar Danny Auble
Browse files

update for the STATE_DRAINING to STATE_DRAIN

parent 47acb21f
No related branches found
No related tags found
No related merge requests found
...@@ -650,7 +650,6 @@ extern int create_static_partitions(List part_list) ...@@ -650,7 +650,6 @@ extern int create_static_partitions(List part_list)
bgl_record->geo[X], bgl_record->geo[Y], bgl_record->geo[X], bgl_record->geo[Y],
bgl_record->geo[Z]); bgl_record->geo[Z]);
bgl_record->quarter = -1; bgl_record->quarter = -1;
full_system_partition = bgl_record;
bgl_record->full_partition = 1; bgl_record->full_partition = 1;
if(bgl_found_part_list) { if(bgl_found_part_list) {
itr = list_iterator_create(bgl_found_part_list); itr = list_iterator_create(bgl_found_part_list);
...@@ -685,6 +684,7 @@ extern int create_static_partitions(List part_list) ...@@ -685,6 +684,7 @@ extern int create_static_partitions(List part_list)
slurm_mutex_unlock(&part_state_mutex); slurm_mutex_unlock(&part_state_mutex);
return SLURM_ERROR; return SLURM_ERROR;
} }
full_system_partition = bgl_record;
bgl_record->bgl_part_list = list_create(NULL); bgl_record->bgl_part_list = list_create(NULL);
bgl_record->hostlist = hostlist_create(NULL); bgl_record->hostlist = hostlist_create(NULL);
/* bgl_record->boot_state = 0; Implicit */ /* bgl_record->boot_state = 0; Implicit */
......
...@@ -53,8 +53,7 @@ extern bool node_already_down(char *node_name) ...@@ -53,8 +53,7 @@ extern bool node_already_down(char *node_name)
base_state = node_ptr->node_state & base_state = node_ptr->node_state &
(~NODE_STATE_NO_RESPOND); (~NODE_STATE_NO_RESPOND);
if ((base_state == NODE_STATE_DOWN) if ((base_state == NODE_STATE_DOWN)
|| (base_state == NODE_STATE_DRAINED) || (base_state == NODE_STATE_DRAIN))
|| (base_state == NODE_STATE_DRAINING))
return true; return true;
else else
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment