From: Kern Sibbald Date: Tue, 20 Apr 2010 12:16:56 +0000 (+0200) Subject: Correct Pool display in SD status. Fixes bug #1541 X-Git-Tag: Release-7.0.0~1904 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=25c3100887aab43708e6fc61e40e696227def60d;p=bacula%2Fbacula Correct Pool display in SD status. Fixes bug #1541 --- diff --git a/bacula/src/stored/vol_mgr.c b/bacula/src/stored/vol_mgr.c index 5edd8aa807..e15e6c0183 100644 --- a/bacula/src/stored/vol_mgr.c +++ b/bacula/src/stored/vol_mgr.c @@ -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);