From: Kern Sibbald Date: Sat, 31 May 2008 07:11:43 +0000 (+0000) Subject: Tweak X-Git-Tag: Release-7.0.0~4512 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6c02b506738216eb6301254ad5515c92551d171a;p=bacula%2Fbacula Tweak git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7068 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/autochanger.c b/bacula/src/stored/autochanger.c index b622561335..9c0c6b8302 100644 --- a/bacula/src/stored/autochanger.c +++ b/bacula/src/stored/autochanger.c @@ -453,13 +453,12 @@ bool unload_dev(DCR *dcr, DEVICE *dev) save_dev = dcr->dev; /* save dcr device */ dcr->dev = dev; /* temporarily point dcr at other device */ - save_slot = dcr->VolCatInfo.Slot; if (dev->get_slot() <= 0 && get_autochanger_loaded_slot(dcr) <= 0) { - dcr->VolCatInfo.Slot = save_slot; dcr->dev = save_dev; return false; } + save_slot = dcr->VolCatInfo.Slot; dcr->VolCatInfo.Slot = dev->get_slot(); dev->dlock();