From 02a305d2cc72687d0455c1a8788f6af6886abc00 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@schedmd.com> Date: Thu, 18 Jul 2013 10:18:21 -0700 Subject: [PATCH] Add a debug_flags variable to the select/cray plugin --- src/plugins/select/cray/select_cray.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/select/cray/select_cray.c b/src/plugins/select/cray/select_cray.c index c88c4529f2f..b72d4244ae1 100644 --- a/src/plugins/select/cray/select_cray.c +++ b/src/plugins/select/cray/select_cray.c @@ -96,6 +96,8 @@ slurmdb_cluster_rec_t *working_cluster_rec = NULL; * are 3 so we set it to that. Do not use SYSTEM_DIMENSIONS since * that could easily be wrong if built on a non Cray system. */ static int select_cray_dim_size[3] = {-1}; +static uint32_t debug_flags = 0; + /* * These variables are required by the generic plugin interface. If they @@ -138,7 +140,7 @@ extern int init ( void ) { if (slurmctld_conf.select_type_param & CR_OTHER_CONS_RES) plugin_id = 108; - + debug_flags = slurm_get_debug_flags(); verbose("%s loaded", plugin_name); return SLURM_SUCCESS; } @@ -629,6 +631,7 @@ extern int select_p_alter_node_cnt(enum select_node_cnt type, void *data) extern int select_p_reconfigure(void) { + debug_flags = slurm_get_debug_flags(); return other_reconfigure(); } -- GitLab