From: Kern Sibbald Date: Wed, 21 Oct 2015 23:55:53 +0000 (-0700) Subject: If we swapped a Volume, clear in_use bit on Volume X-Git-Tag: Release-7.4.0~208 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ec7383a4028ee7edb5e7d6633d7556aa64e43e68;p=bacula%2Fbacula If we swapped a Volume, clear in_use bit on Volume --- diff --git a/bacula/src/stored/mount.c b/bacula/src/stored/mount.c index 0aae19a5dc..a93e0e77da 100644 --- a/bacula/src/stored/mount.c +++ b/bacula/src/stored/mount.c @@ -620,7 +620,7 @@ void DCR::do_swapping(bool is_writing) if (dev->vol) { dev->vol->clear_swapping(); Dmsg1(100, "=== set in_use vol=%s\n", dev->vol->vol_name); - dev->vol->set_in_use(); + dev->vol->clear_in_use(); dev->VolHdr.VolumeName[0] = 0; /* don't yet have right Volume */ } else { Dmsg1(100, "No vol on dev=%s\n", dev->print_name());