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

Fix for root user's max node count.

parent 08f85cae
No related branches found
No related tags found
No related merge requests found
...@@ -874,7 +874,9 @@ extern int select_nodes(struct job_record *job_ptr, bool test_only) ...@@ -874,7 +874,9 @@ extern int select_nodes(struct job_record *job_ptr, bool test_only)
max_nodes = MIN(job_ptr->details->max_nodes, max_nodes = MIN(job_ptr->details->max_nodes,
part_ptr->max_nodes); part_ptr->max_nodes);
max_nodes = MIN(max_nodes, 500000); /* prevent overflows */ max_nodes = MIN(max_nodes, 500000); /* prevent overflows */
if (job_ptr->details->max_nodes) if (super_user)
req_nodes = MAX(job_ptr->details->max_nodes, min_nodes);
else if (job_ptr->details->max_nodes)
req_nodes = max_nodes; req_nodes = max_nodes;
else else
req_nodes = min_nodes; req_nodes = min_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