From 6a2c08edbc2604a80aae40ad7fcef4cc1984d0a6 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@schedmd.com> Date: Fri, 13 Dec 2013 15:53:38 -0800 Subject: [PATCH] Don't run the init on the DBD. Addition to commit 226b49a3c19c6f62147b0d5f8fedc392ccdf8f8d --- src/common/slurm_jobacct_gather.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/slurm_jobacct_gather.c b/src/common/slurm_jobacct_gather.c index 5a0ad9211e2..a670cb04fef 100644 --- a/src/common/slurm_jobacct_gather.c +++ b/src/common/slurm_jobacct_gather.c @@ -64,6 +64,7 @@ #include "src/common/xmalloc.h" #include "src/common/xstring.h" #include "src/slurmd/slurmstepd/slurmstepd_job.h" +#include "src/slurmdbd/read_config.h" /* ** Define slurm-specific aliases for use by plugins, see slurm_xlator.h @@ -242,7 +243,7 @@ extern int jobacct_gather_init(void) char *type = NULL; int retval=SLURM_SUCCESS; - if (init_run && g_context) + if (slurmdbd_conf || (init_run && g_context)) return retval; slurm_mutex_lock(&g_context_lock); -- GitLab