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

BLUEGENE - fix for handling nodes not in the curr_list on clean start

parent 31768c65
No related branches found
No related tags found
No related merge requests found
...@@ -219,6 +219,8 @@ static int _delete_old_blocks(List curr_block_list, List found_block_list) ...@@ -219,6 +219,8 @@ static int _delete_old_blocks(List curr_block_list, List found_block_list)
itr_curr = list_iterator_create(curr_block_list); itr_curr = list_iterator_create(curr_block_list);
while ((init_record = list_next(itr_curr))) { while ((init_record = list_next(itr_curr))) {
list_remove(itr_curr); list_remove(itr_curr);
/* make sure we query the state here. */
list_push(bg_lists->main, init_record);
list_push(destroy_list, init_record); list_push(destroy_list, init_record);
} }
list_iterator_destroy(itr_curr); list_iterator_destroy(itr_curr);
...@@ -237,6 +239,8 @@ static int _delete_old_blocks(List curr_block_list, List found_block_list) ...@@ -237,6 +239,8 @@ static int _delete_old_blocks(List curr_block_list, List found_block_list)
if (found_record == NULL) { if (found_record == NULL) {
list_remove(itr_curr); list_remove(itr_curr);
/* make sure we query the state here. */
list_push(bg_lists->main, init_record);
list_push(destroy_list, init_record); list_push(destroy_list, init_record);
} }
} }
......
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