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

Further simplification

parent f1ba1aea
No related branches found
No related tags found
No related merge requests found
...@@ -63,16 +63,6 @@ static int setup_children = 0; ...@@ -63,16 +63,6 @@ static int setup_children = 0;
static assoc_mgr_lock_flags_t assoc_mgr_locks; static assoc_mgr_lock_flags_t assoc_mgr_locks;
static assoc_init_args_t init_setup; static assoc_init_args_t init_setup;
void (*add_license_notify) (slurmdb_clus_res_rec_t *rec) = NULL;
void (*remove_assoc_notify) (slurmdb_association_rec_t *rec) = NULL;
void (*remove_license_notify) (slurmdb_clus_res_rec_t *rec) = NULL;
void (*remove_qos_notify) (slurmdb_qos_rec_t *rec) = NULL;
void (*sync_license_notify) (List clus_res_list) = NULL;
void (*update_assoc_notify) (slurmdb_association_rec_t *rec) = NULL;
void (*update_license_notify) (slurmdb_clus_res_rec_t *rec) = NULL;
void (*update_qos_notify) (slurmdb_qos_rec_t *rec) = NULL;
void (*update_resvs) () = NULL;
static pthread_mutex_t locks_mutex = PTHREAD_MUTEX_INITIALIZER; static pthread_mutex_t locks_mutex = PTHREAD_MUTEX_INITIALIZER;
static pthread_cond_t locks_cond = PTHREAD_COND_INITIALIZER; static pthread_cond_t locks_cond = PTHREAD_COND_INITIALIZER;
...@@ -2749,8 +2739,8 @@ extern int assoc_mgr_update_assocs(slurmdb_update_object_t *update) ...@@ -2749,8 +2739,8 @@ extern int assoc_mgr_update_assocs(slurmdb_update_object_t *update)
list_destroy(update_list); list_destroy(update_list);
} }
if (run_update_resvs && update_resvs) if (run_update_resvs && init_setup.update_resvs)
update_resvs(); init_setup.update_resvs();
return rc; return rc;
} }
......
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