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-7.0.0~2468 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f47e4f581a96876ac2a84b543749b8670aadd371;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;