]> git.sur5r.net Git - bacula/bacula/commitdiff
If we swapped a Volume, clear in_use bit on Volume
authorKern Sibbald <kern@sibbald.com>
Wed, 21 Oct 2015 23:55:53 +0000 (16:55 -0700)
committerKern Sibbald <kern@sibbald.com>
Wed, 21 Oct 2015 23:56:55 +0000 (16:56 -0700)
bacula/src/stored/mount.c

index 0aae19a5dc4e341615a7f4c1bc8efc7f6c29a7d1..a93e0e77da626c7ecf264e6524b3e0e00a3287dd 100644 (file)
@@ -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());