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

better error handling, we need to make sure we add blocks to the list before...

better error handling, we need to make sure we add blocks to the list before starting the real time server or we could miss things on start up
parent 97df3074
No related branches found
No related tags found
No related merge requests found
......@@ -180,6 +180,13 @@ extern int bridge_handle_input_errors(const char *function, const uint32_t err,
function, err);
rc = SLURM_ERROR;
}
if (bg_record && (rc == SLURM_SUCCESS)) {
/* Make sure we set this to free since if it isn't in
the system and we are waiting for it to be free, we
will be waiting around for a long time ;).
*/
bg_record->state = BG_BLOCK_FREE;
}
return rc;
}
......
......@@ -200,7 +200,8 @@ void event_handler::handleBlockStateChangedRealtimeEvent(
bg_record = find_bg_record_in_list(bg_lists->main, bg_block_id);
if (!bg_record) {
slurm_mutex_unlock(&block_state_mutex);
info("bg_record %s isn't in the main list", bg_block_id);
info("bridge_status: bg_record %s isn't in the main list",
bg_block_id);
return;
}
......
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