git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7250
91ce42f0-d328-0410-95d8-
f526ca767f89
goto get_out;
}
+ dev->clear_unload();
+
/*
* have_vol defines whether or not mount_next_write_volume should
* ask the Director again about what Volume to use.
if (dcr) {
dev = dcr->dev;
dev->dlock(); /* Use P to avoid indefinite block */
- Dmsg1(100, "mount cmd blocked=%d\n", dev->blocked());
+ Dmsg2(100, "mount cmd blocked=%d must_unload=%d\n", dev->blocked(),
+ dev->must_unload());
switch (dev->blocked()) { /* device blocked? */
case BST_WAITING_FOR_SYSOP:
/* Someone is waiting, wake him */