From: Kern Sibbald Date: Thu, 10 Dec 2009 12:48:19 +0000 (+0100) Subject: Allow mount to wake job waiting for op X-Git-Tag: Release-5.0.0~151 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d2f780bc7931732c1b5c5c071e74543d95b86259;p=bacula%2Fbacula Allow mount to wake job waiting for op --- diff --git a/bacula/src/stored/dircmd.c b/bacula/src/stored/dircmd.c index 7626fbb4be..e34f9466e9 100644 --- a/bacula/src/stored/dircmd.c +++ b/bacula/src/stored/dircmd.c @@ -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;