Skip to content

Commit

Permalink
Add get_magnetic_resv_count()
Browse files Browse the repository at this point in the history
Bug 12350
  • Loading branch information
fafik23 authored and dannyauble committed Oct 27, 2021
1 parent f1578cf commit 37523ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/slurmctld/reservation.c
Expand Up @@ -7301,3 +7301,10 @@ extern void set_reserved_license_count(licenses_t *license)
list_for_each(resv_list, _foreach_reservation_license_list,
license);
}

extern int get_magnetic_resv_count(void)
{
xassert(magnetic_resv_list);

return list_count(magnetic_resv_list);
}
2 changes: 2 additions & 0 deletions src/slurmctld/reservation.h
Expand Up @@ -256,4 +256,6 @@ extern List get_resv_list(char *name, char **err_resv);

extern void set_reserved_license_count(licenses_t *license);

extern int get_magnetic_resv_count(void);

#endif /* !_RESERVATION_H */

0 comments on commit 37523ba

Please sign in to comment.