Skip to content
Snippets Groups Projects
Commit ec59bb1b authored by Danny Auble's avatar Danny Auble
Browse files

Minor performance mod to commit 3f736aa2

parent 75f49511
No related branches found
No related tags found
No related merge requests found
......@@ -1682,9 +1682,11 @@ extern int select_nodes(struct job_record *job_ptr, bool test_only,
/* Set this guess here to give the user tools an idea
* of how many nodes Slurm is planning on giving the job.
* This needs to be done on success or not. It means the job
* could run on nodes.
* could run on nodes. We only set the wag once to avoid
* having to go through the bit logic multiple times.
*/
if (select_bitmap) {
if (select_bitmap
&& ((error_code == SLURM_SUCCESS) || !job_ptr->node_cnt_wag)) {
#ifdef HAVE_BG
xassert(job_ptr->select_jobinfo);
select_g_select_jobinfo_get(job_ptr->select_jobinfo,
......
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