From: Eric Bollengier Date: Tue, 27 Jan 2009 15:42:31 +0000 (+0000) Subject: ebl Fix small bug about RecyclePool that is not updated at X-Git-Tag: Release-7.0.0~3427 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=84e7705106ebb46a98c748cf9e1c29f0d2e2ebba;p=bacula%2Fbacula 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 --- 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.