From cf3849ada2aa8830fdb38322ce87a78e5d42042c Mon Sep 17 00:00:00 2001 From: Morris Jette <jette@schedmd.com> Date: Fri, 25 Jul 2014 15:42:53 -0700 Subject: [PATCH] Correct suspend/resume calls gang and job arrays The data structure in the job suspend/resume call changed for support of job arrays and the call in the gang scheduling module failed to change appropriately. --- src/slurmctld/gang.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slurmctld/gang.c b/src/slurmctld/gang.c index 631138a5c02..76e8094d52f 100644 --- a/src/slurmctld/gang.c +++ b/src/slurmctld/gang.c @@ -560,6 +560,7 @@ static int _suspend_job(uint32_t job_id) suspend_msg_t msg; msg.job_id = job_id; + msg.job_id_str = NULL; msg.op = SUSPEND_JOB; rc = job_suspend(&msg, 0, -1, false, (uint16_t)NO_VAL); /* job_suspend() returns ESLURM_DISABLED if job is already suspended */ @@ -580,6 +581,7 @@ static void _resume_job(uint32_t job_id) suspend_msg_t msg; msg.job_id = job_id; + msg.job_id_str = NULL; msg.op = RESUME_JOB; rc = job_suspend(&msg, 0, -1, false, (uint16_t)NO_VAL); if (rc == SLURM_SUCCESS) { -- GitLab