/*
Bacula® - The Network Backup Solution
- Copyright (C) 2000-2008 Free Software Foundation Europe e.V.
+ Copyright (C) 2000-2009 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
term_msg(); /* terminate message handler */
cleanup_crypto();
close_memory_pool(); /* release free memory in pool */
+ lmgr_cleanup_main();
sm_dump(false);
exit(sig);
}
*/
if (!pool->catalog || pool->catalog == catalog) {
create_pool(NULL, db, pool, POOL_OP_UPDATE); /* update request */
- update_pool_recyclepool(NULL, db, pool);
+ }
+ }
+
+ /* 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_references(NULL, db, pool);
}
}