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

in the reservation code, permit a job to use all node by default

	(with no reservation). It previously just permitted use of
	avail_node_bitmap, which didn't work properly immediatedly 
	after startup until nodes registerdd.
parent 574ce0fd
No related branches found
No related tags found
No related merge requests found
...@@ -1538,7 +1538,8 @@ extern int job_test_resv(struct job_record *job_ptr, time_t *when, ...@@ -1538,7 +1538,8 @@ extern int job_test_resv(struct job_record *job_ptr, time_t *when,
} }
job_ptr->resv_ptr = NULL; /* should be redundant */ job_ptr->resv_ptr = NULL; /* should be redundant */
*node_bitmap = bit_copy(avail_node_bitmap); *node_bitmap = bit_alloc(node_record_count);
bit_nset(*node_bitmap, 0, (node_record_count - 1));
if (list_count(resv_list) == 0) if (list_count(resv_list) == 0)
return SLURM_SUCCESS; return SLURM_SUCCESS;
......
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