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

better setting of updated blocks/jobs also fixed bug where block would never...

better setting of updated blocks/jobs also fixed bug where block would never be freed in simulation mode
parent 73271a56
No related branches found
No related tags found
No related merge requests found
......@@ -1244,6 +1244,7 @@ static int _sync_block_lists(List full_list, List incomp_list)
new_record->bg_block_id,
(size_t)new_record);
list_append(incomp_list, new_record);
last_bg_update = time(NULL);
count++;
}
list_iterator_reset(itr2);
......@@ -1637,7 +1638,7 @@ preempt:
job_ptr->job_state |=
JOB_CONFIGURING;
last_job_update = time(NULL);
last_bg_update = time(NULL);
}
} else
set_select_jobinfo(
......@@ -1678,6 +1679,7 @@ preempt:
}
blocks_added = 0;
}
last_job_update = time(NULL);
} else {
error("we got a success, but no block back");
}
......
......@@ -546,8 +546,8 @@ extern int bg_free_block(bg_record_t *bg_record, bool wait, bool locked)
}
}
#else
// bg_record->state = RM_PARTITION_FREE;
bg_record->state = RM_PARTITION_DEALLOCATING;
bg_record->state = RM_PARTITION_FREE;
// bg_record->state = RM_PARTITION_DEALLOCATING;
#endif
}
......
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