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

Fix bug in enforcement of partition max node count.

parent 3b40c302
No related branches found
No related tags found
No related merge requests found
...@@ -862,9 +862,10 @@ extern int select_nodes(struct job_record *job_ptr, bool test_only) ...@@ -862,9 +862,10 @@ extern int select_nodes(struct job_record *job_ptr, bool test_only)
part_ptr->min_nodes); part_ptr->min_nodes);
part_node_limit = part_ptr->max_nodes; part_node_limit = part_ptr->max_nodes;
} }
if (super_user || (job_ptr->details->max_nodes == 0) || if (super_user || (part_ptr->max_nodes == INFINITE))
(part_ptr->max_nodes == INFINITE))
max_nodes = job_ptr->details->max_nodes; max_nodes = job_ptr->details->max_nodes;
else if (job_ptr->details->max_nodes == 0)
max_nodes = part_ptr->max_nodes;
else else
max_nodes = MIN(job_ptr->details->max_nodes, max_nodes = MIN(job_ptr->details->max_nodes,
part_ptr->max_nodes); part_ptr->max_nodes);
......
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