]> git.sur5r.net Git - bacula/bacula/commitdiff
Add debug + clear unload flag at begin acquire
authorKern Sibbald <kern@sibbald.com>
Sat, 28 Jun 2008 08:49:32 +0000 (08:49 +0000)
committerKern Sibbald <kern@sibbald.com>
Sat, 28 Jun 2008 08:49:32 +0000 (08:49 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7250 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/acquire.c
bacula/src/stored/dircmd.c

index 8c4ec90677313577677b2d56901d5d2732e6ef4c..42f15bd7655cb48cf62840d6abf3693ea2d73da6 100644 (file)
@@ -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.
index 972c66fc8a4d841383c50e8e2610f1fd3382d21e..ad294bb0627c2d6ba4ed45e8eedb78eaf83a767f 100644 (file)
@@ -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 */