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

BLUEGENE - Avoid possible issue if the bg_action_ptr doesn't contain a

job_ptr.
parent 5432db82
No related branches found
No related tags found
No related merge requests found
...@@ -103,11 +103,13 @@ static int _make_sure_block_still_exists(bg_action_t *bg_action_ptr, ...@@ -103,11 +103,13 @@ static int _make_sure_block_still_exists(bg_action_t *bg_action_ptr,
if ((bg_record->magic != BLOCK_MAGIC) if ((bg_record->magic != BLOCK_MAGIC)
|| !block_ptr_exist_in_list(bg_lists->main, bg_record)) { || !block_ptr_exist_in_list(bg_lists->main, bg_record)) {
slurm_mutex_unlock(&block_state_mutex); slurm_mutex_unlock(&block_state_mutex);
debug("The block %s disappeared while starting " if (bg_action_ptr->job_ptr) {
"job %u requeueing if possible.", debug("The block %s disappeared while starting "
bg_action_ptr->bg_block_id, "job %u requeueing if possible.",
bg_action_ptr->job_ptr->job_id); bg_action_ptr->bg_block_id,
bg_requeue_job(bg_action_ptr->job_ptr->job_id, 1); bg_action_ptr->job_ptr->job_id);
bg_requeue_job(bg_action_ptr->job_ptr->job_id, 1);
}
return 0; return 0;
} }
return 1; return 1;
......
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