From: Kern Sibbald Date: Sat, 28 Jun 2008 08:49:32 +0000 (+0000) Subject: Add debug + clear unload flag at begin acquire X-Git-Tag: Release-3.0.0~1217 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b9fb8f7c6714009edc069dd92e86f2dae20ee831;p=bacula%2Fbacula Add debug + clear unload flag at begin acquire git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7250 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/acquire.c b/bacula/src/stored/acquire.c index 8c4ec90677..42f15bd765 100644 --- a/bacula/src/stored/acquire.c +++ b/bacula/src/stored/acquire.c @@ -373,6 +373,8 @@ DCR *acquire_device_for_append(DCR *dcr) 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. diff --git a/bacula/src/stored/dircmd.c b/bacula/src/stored/dircmd.c index 972c66fc8a..ad294bb062 100644 --- a/bacula/src/stored/dircmd.c +++ b/bacula/src/stored/dircmd.c @@ -650,7 +650,8 @@ static bool mount_cmd(JCR *jcr) 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 */