]> git.sur5r.net Git - bacula/bacula/commitdiff
Correct Pool display in SD status. Fixes bug #1541
authorKern Sibbald <kern@sibbald.com>
Tue, 20 Apr 2010 12:16:56 +0000 (14:16 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:43 +0000 (16:53 +0200)
bacula/src/stored/vol_mgr.c

index 5edd8aa8073fa516ac6068fadef9a32f3a9caf54..e15e6c01837710fb25e89f8b47883ab14a3a9f58 100644 (file)
@@ -621,6 +621,10 @@ bool free_volume(DEVICE *dev)
    if (!vol->is_swapping()) {
       Dmsg1(dbglvl, "=== clear in_use vol=%s\n", vol->vol_name);
       dev->vol = NULL;
+      if (!dev->num_reserved()) {
+         dev->pool_name[0] = 0;
+         dev->pool_type[0] = 0;
+      }
       vol_list->remove(vol);
       Dmsg2(dbglvl, "=== remove volume %s dev=%s\n", vol->vol_name, dev->print_name());
       free_vol_item(vol);