From: Kern Sibbald Date: Thu, 5 Jul 2012 06:49:11 +0000 (+0200) Subject: Fix Sigma Copy bug #4377 X-Git-Tag: Release-7.0.0~153 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=abdb09c5486b07ab7402d9c1c0f911be4ab3cdef;p=bacula%2Fbacula Fix Sigma Copy bug #4377 --- diff --git a/bacula/src/stored/autochanger.c b/bacula/src/stored/autochanger.c index 653b6502ca..8d8b160b4f 100644 --- a/bacula/src/stored/autochanger.c +++ b/bacula/src/stored/autochanger.c @@ -209,6 +209,10 @@ int autoload_device(DCR *dcr, int writing, BSOCK *dir) slot, drive); Dmsg2(100, "load slot %d, drive %d, status is OK.\n", slot, drive); dev->set_slot(slot); /* set currently loaded slot */ + if (dev->vol) { + /* We just swapped this Volume so it cannot be swapping any more */ + dev->vol->clear_swapping(); + } } else { berrno be; be.set_errno(status);