]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl avoid loop in show command when NextPool = Pool
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 18 Feb 2007 10:51:23 +0000 (10:51 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sun, 18 Feb 2007 10:51:23 +0000 (10:51 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4200 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/dird_conf.c

index 5494f0eca37ba93fc34e5eb75b5dda6870dc709f..301d9b1661457d212b38d60f5e719359f965db82 100644 (file)
@@ -361,6 +361,7 @@ static RES_ITEM pool_items[] = {
    {"storage",       store_alist_res, ITEM(res_pool.storage),  R_STORAGE, 0, 0},
    {"autoprune",       store_bool,    ITEM(res_pool.AutoPrune), 0, ITEM_DEFAULT, true},
    {"recycle",         store_bool,    ITEM(res_pool.Recycle),   0, ITEM_DEFAULT, true},
+   {"recyclepool",     store_res,     ITEM(res_pool.RecyclePool), R_POOL, 0, 0},
    {NULL, NULL, {0}, 0, 0, 0}
 };
 
@@ -853,8 +854,7 @@ next_run:
               edit_uint64(res->res_pool.MigrationHighBytes, ed2),
               edit_uint64(res->res_pool.MigrationLowBytes, ed3));
       if (res->res_pool.NextPool) {
-         sendit(sock, _("  --> "));
-         dump_resource(-R_POOL, (RES *)res->res_pool.NextPool, sendit, sock);
+         sendit(sock, _("      NextPool=%s\n"), res->res_pool.NextPool->hdr.name);
       }
       if (res->res_pool.storage) {
          STORE *store;