From: Eric Bollengier Date: Fri, 22 Jul 2016 07:20:02 +0000 (+0200) Subject: Check if the ScratchPool points to the current Pool and print a warning message in... X-Git-Tag: Release-7.4.4~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=302b2d5b5d44060a790bcb826f6396135acad13b;p=bacula%2Fbacula Check if the ScratchPool points to the current Pool and print a warning message in such case --- diff --git a/bacula/src/dird/ua_cmds.c b/bacula/src/dird/ua_cmds.c index 334066e829..d2e007b320 100644 --- a/bacula/src/dird/ua_cmds.c +++ b/bacula/src/dird/ua_cmds.c @@ -529,6 +529,13 @@ int update_pool_references(JCR *jcr, BDB *db, POOL *pool) { POOL_DBR pr; + if (pool->ScratchPool == pool) { + Jmsg(NULL, M_WARNING, 0, + _("The ScratchPool directive for Pool \"%s\" is incorrect. Using default Scratch pool instead.\n"), + pool->name()); + pool->ScratchPool = NULL; + } + if (!pool->RecyclePool && !pool->ScratchPool) { return 1; }