From 4665927f647ad80e072a72341b3d8f5ff4ccf489 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 10 Dec 2009 12:27:15 +0100 Subject: [PATCH] Fix another volume_lock dlock order problem --- bacula/src/stored/mount.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5