From: Kern Sibbald Date: Thu, 5 Jul 2012 06:49:11 +0000 (+0200) Subject: Fix Sigma Copy bug #4377 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d6608626c715f7299e8fe11c27fd573144fc4375;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);