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

BLUEGENE - amend to last commit. This fixed the same problem for the

full system block, and a debug printout.
parent c62c4ce8
No related branches found
No related tags found
No related merge requests found
...@@ -240,6 +240,12 @@ end_it: ...@@ -240,6 +240,12 @@ end_it:
debug("\n\n"); debug("\n\n");
while ((found_record = (bg_record_t *) list_next(itr)) while ((found_record = (bg_record_t *) list_next(itr))
!= NULL) { != NULL) {
/* If we are deleting old blocks they will
have been added to the main list, so we
want to skip over them.
*/
if (found_record->free_cnt)
continue;
print_bg_record(found_record); print_bg_record(found_record);
} }
list_iterator_destroy(itr); list_iterator_destroy(itr);
...@@ -343,6 +349,13 @@ extern int create_full_system_block(List bg_found_block_list) ...@@ -343,6 +349,13 @@ extern int create_full_system_block(List bg_found_block_list)
itr = list_iterator_create(bg_lists->main); itr = list_iterator_create(bg_lists->main);
while ((bg_record = (bg_record_t *) list_next(itr)) while ((bg_record = (bg_record_t *) list_next(itr))
!= NULL) { != NULL) {
/* If we are deleting old blocks they will
have been added to the main list, so we
want to skip over them.
*/
if (bg_record->free_cnt)
continue;
if (!strcmp(name, bg_record->mp_str)) { if (!strcmp(name, bg_record->mp_str)) {
xfree(name); xfree(name);
list_iterator_destroy(itr); list_iterator_destroy(itr);
......
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