From 5fdde77b03110df59baeda81488677e502433794 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 15 Nov 2017 11:16:25 +0100 Subject: [PATCH] Add temporary fix to avoid a deadlock after a reload command on an incorrect configuration --- bacula/src/lib/message.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index 44a7dc1e40..cfb8388609 100644 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -834,10 +834,18 @@ void dispatch_message(JCR *jcr, int type, utime_t mtime, char *msg) if (!jcr) { jcr = get_jcr_from_tsd(); } + +/* Temporary fix for a deadlock in the reload command when + * the configuration has a problem. The JCR chain is locked + * during the reload, we cannot create a new JCR. + */ +#if 0 if (!jcr) { jcr = new_jcr(sizeof(JCR), NULL); created_jcr = true; } +#endif + if (jcr) { msgs = jcr->jcr_msgs; } -- 2.39.2