From: Kern Sibbald Date: Thu, 10 Dec 2009 11:27:15 +0000 (+0100) Subject: Fix another volume_lock dlock order problem X-Git-Tag: Release-5.0.0~155 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4665927f647ad80e072a72341b3d8f5ff4ccf489;p=bacula%2Fbacula Fix another volume_lock dlock order problem --- diff --git a/bacula/src/stored/mount.c b/bacula/src/stored/mount.c index 4c022d54df..a8646bd73b 100644 --- a/bacula/src/stored/mount.c +++ b/bacula/src/stored/mount.c @@ -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;