trying to switch drives by checking for blocking before unblocking.
Fixes bug #906.
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5545
91ce42f0-d328-0410-95d8-
f526ca767f89
Dmsg2(50, "Dec reserve=%d dev=%s\n", dev->reserved_device, dev->print_name());
dcr->reserved_device = false;
}
- dev->dunblock(DEV_LOCKED);
+ /*
+ * Normally we are blocked, but in at least one error case above
+ * we are not blocked because we unsuccessfully tried changing
+ * devices.
+ */
+ if (dev->is_blocked()) {
+ dev->dunblock(DEV_LOCKED);
+ }
Dmsg1(950, "jcr->dcr=%p\n", jcr->dcr);
return ok;
}
General:
13Sep07
+kes Fix seg fault in error exit of acquire_for_read after unsuccessfully
+ trying to switch drives by checking for blocking before unblocking.
+ Fixes bug #906.
kes Cancel storage daemon in all cases where FD reports error. This
should fix virtually all cases of bug #920.
kes Fix db_escape_string() for MySQL which did not compile.