]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/mount.c
Check pool memory size for truncate op
[bacula/bacula] / bacula / src / stored / mount.c
index 4c022d54df5b9b6985b29a81024ed765edf23dc0..a8646bd73ba450e65e39072f4f056676b20b8294 100644 (file)
@@ -116,9 +116,11 @@ mount_next_vol:
       ask = true;                     /* ask operator to mount tape */
       do_find = true;                 /* re-find a volume after unload */
    }
+   unlock_volumes();
    do_unload();
    do_swapping(true /*is_writing*/);
    do_load(true /*is_writing*/);
+   lock_volumes();
 
    if (do_find && !find_a_volume()) {
       goto no_lock_bail_out;