]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/reserve.c
Check pool memory size for truncate op
[bacula/bacula] / bacula / src / stored / reserve.c
index 677d5ebdeab4ce055ae03d37e0caca07983d0cef..8119f84af7fee6e2bb7672c2374970400e93937e 100644 (file)
@@ -145,6 +145,7 @@ void DCR::clear_reserved()
  */
 void DCR::unreserve_device()
 {
+   dev->dlock();
    lock_volumes();
    if (is_reserved()) {
       clear_reserved();
@@ -162,6 +163,7 @@ void DCR::unreserve_device()
       }
    }
    unlock_volumes();
+   dev->dunlock();
 }
 
 /*