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

BGQ - fix xassert happening erroniously when a block is put into error

state when already in error state.
parent 1a23a47a
No related branches found
No related tags found
No related merge requests found
......@@ -1374,9 +1374,10 @@ extern int put_block_in_error_state(bg_record_t *bg_record, char *reason)
if (!block_ptr_exist_in_list(bg_lists->job_running, bg_record)) {
list_push(bg_lists->job_running, bg_record);
num_unused_cpus -= bg_record->cpu_cnt;
} else {
info("hey I was in the job_running table %d %d?",
list_count(bg_record->job_list), num_unused_cpus);
} else if (!(bg_record->state & BG_BLOCK_ERROR_FLAG)) {
info("hey I was in the job_running table %d %d %s?",
list_count(bg_record->job_list), num_unused_cpus,
bg_block_state_string(bg_record->state));
xassert(0);
}
......
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