From 779408eb0867f313d680c89dc2f4d4cdd43f59be Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 27 Jan 2009 15:42:31 +0000 Subject: [PATCH] ebl Fix small bug about RecyclePool that is not updated at the first start. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8403 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/dird.c | 12 ++++++++++++ bacula/technotes-2.5 | 3 +++ 2 files changed, 15 insertions(+) diff --git a/bacula/src/dird/dird.c b/bacula/src/dird/dird.c index 48fe7487f0..da5361b753 100644 --- a/bacula/src/dird/dird.c +++ b/bacula/src/dird/dird.c @@ -945,6 +945,18 @@ static bool check_catalog() */ if (!pool->catalog || pool->catalog == catalog) { create_pool(NULL, db, pool, POOL_OP_UPDATE); /* update request */ + } + } + + /* Once they are created, we can loop over them again, updating + * references (RecyclePool) + */ + foreach_res(pool, R_POOL) { + /* + * If the Pool has a catalog resource update the pool only + * in that catalog. + */ + if (!pool->catalog || pool->catalog == catalog) { update_pool_recyclepool(NULL, db, pool); } } diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index 63aecf50d3..21b1145152 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -10,6 +10,9 @@ filepattern (restore with regex in bsr) mixed priorities General: +27Jan09 +ebl Fix a bug that doesn't update RecyclePool all the time + during the first startup. 25Jan09 kes Turn off db_get_file_list() giant SQL because if fails on my production machine. -- 2.39.5