Skip to content
Snippets Groups Projects
Commit 7b7020d4 authored by Moe Jette's avatar Moe Jette
Browse files

Minor code re-structuring for clarity. No changes in logic.

parent 8cc57865
No related branches found
No related tags found
No related merge requests found
...@@ -450,8 +450,7 @@ static void _term_jobs_on_part(char *bgl_part_id) ...@@ -450,8 +450,7 @@ static void _term_jobs_on_part(char *bgl_part_id)
continue; continue;
} }
info("got job_id %d",job_id); info("got job_id %d",job_id);
if((rc = _remove_job(job_id)) if((rc = _remove_job(job_id)) == INTERNAL_ERROR)
== INTERNAL_ERROR)
goto not_removed; goto not_removed;
} }
...@@ -548,11 +547,10 @@ static int _remove_job(db_job_id_t job_id) ...@@ -548,11 +547,10 @@ static int _remove_job(db_job_id_t job_id)
//free_bgl_partition(); //free_bgl_partition();
return STATUS_OK; return STATUS_OK;
} else {
(void) jm_signal_job(job_id, SIGKILL);
rc = jm_cancel_job(job_id);
} }
(void) jm_signal_job(job_id, SIGKILL);
rc = jm_cancel_job(job_id);
if (rc != STATUS_OK) { if (rc != STATUS_OK) {
if (rc == JOB_NOT_FOUND) { if (rc == JOB_NOT_FOUND) {
debug("job %d removed from MMCS", job_id); debug("job %d removed from MMCS", job_id);
......
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