Skip to content

Commit 7321137

Browse files
committed
slurmctld - If no bf_licenses, don't set licenses based later_start
This fixes a regression added by commit a23a0a2. When the node_space table entries licenses is NULL don't return true that there is an increase in requested licenses in the next time slot. Ticket: 24594
1 parent 02608b4 commit 7321137

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/slurmctld/licenses.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ extern bool slurm_bf_licenses_avail(bf_licenses_t *licenses,
353353
extern bool slurm_bf_licenses_equal(bf_licenses_t *a, bf_licenses_t *b);
354354

355355
#define bf_licenses_relevant_hres_increase(_x, _y, job_ptr) \
356-
(_x ? slurm_bf_licenses_relevant_hres_increase(_x, _y, job_ptr) : true)
356+
(_x ? slurm_bf_licenses_relevant_hres_increase(_x, _y, job_ptr) : false)
357357
/*
358358
* Return true if the job requests an hres license and 'next' has an licenses
359359
* with the same hres_id that has more remaining than in 'current'.

0 commit comments

Comments
 (0)