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

Fix bug in select/linear for expected start time of a job when

it's partition is configured "Shared=EXCLUSIVE" (which is redundant).
parent 7dd2b1fb
No related branches found
No related tags found
No related merge requests found
...@@ -2171,10 +2171,10 @@ static int _will_run_test(struct job_record *job_ptr, bitstr_t *bitmap, ...@@ -2171,10 +2171,10 @@ static int _will_run_test(struct job_record *job_ptr, bitstr_t *bitmap,
List cr_job_list; List cr_job_list;
ListIterator job_iterator, preemptee_iterator; ListIterator job_iterator, preemptee_iterator;
bitstr_t *orig_map; bitstr_t *orig_map;
int i, rc = SLURM_ERROR; int i, max_run_jobs, rc = SLURM_ERROR;
int max_run_jobs = max_share - 1; /* exclude this job */
time_t now = time(NULL); time_t now = time(NULL);
max_run_jobs = MAX((max_share - 1), 1); /* exclude this job */
orig_map = bit_copy(bitmap); orig_map = bit_copy(bitmap);
if (!orig_map) if (!orig_map)
fatal("bit_copy: malloc failure"); fatal("bit_copy: malloc failure");
......
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