From d2f780bc7931732c1b5c5c071e74543d95b86259 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 10 Dec 2009 13:48:19 +0100 Subject: [PATCH] Allow mount to wake job waiting for op --- bacula/src/stored/dircmd.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5