]> git.sur5r.net Git - bacula/bacula/commitdiff
Possible fix for problem with Volume in another drive
authorKern Sibbald <kern@sibbald.com>
Fri, 16 Oct 2009 09:53:33 +0000 (11:53 +0200)
committerKern Sibbald <kern@sibbald.com>
Fri, 16 Oct 2009 09:53:33 +0000 (11:53 +0200)
bacula/src/stored/autochanger.c

index b42c2110d5b449abc1a2f0a3c1da9e7815d61bad..792dfe3bcb9f91ff4344b8566fdc214b6f1a42ca 100644 (file)
@@ -432,6 +432,7 @@ static bool unload_other_drive(DCR *dcr, int slot)
       Dmsg4(100, "Vol %s for dev=%s is busy dev=%s slot=%d\n",
            dcr->VolumeName, dcr->dev->print_name(), dev->print_name(), dev->get_slot());
       Dmsg2(100, "num_writ=%d reserv=%d\n", dev->num_writers, dev->num_reserved());
+      volume_unused(dcr);
       return false;
    }
    return unload_dev(dcr, dev);