From abdb09c5486b07ab7402d9c1c0f911be4ab3cdef Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 5 Jul 2012 08:49:11 +0200 Subject: [PATCH] Fix Sigma Copy bug #4377 --- bacula/src/stored/autochanger.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.5