]> git.sur5r.net Git - bacula/bacula/commitdiff
Allow mount to wake job waiting for op
authorKern Sibbald <kern@sibbald.com>
Thu, 10 Dec 2009 12:48:19 +0000 (13:48 +0100)
committerKern Sibbald <kern@sibbald.com>
Thu, 10 Dec 2009 12:48:19 +0000 (13:48 +0100)
bacula/src/stored/dircmd.c

index 7626fbb4be59035b4947cc82dd545b257fc02422..e34f9466e93bd9646ed38db3be73b60b86728b62 100644 (file)
@@ -761,6 +761,9 @@ static bool mount_cmd(JCR *jcr)
             } else { /* must be file */
                dir->fsend(_("3906 File device %s is always mounted.\n"),
                   dev->print_name());
+               pthread_cond_broadcast(&dev->wait_next_vol);
+               Dmsg1(100, "JobId=%u broadcast wait_device_release\n", (uint32_t)dcr->jcr->JobId);
+               pthread_cond_broadcast(&wait_device_release);
             }
             break;