From 222449a2da53710f033b246e0f5c552c297814ad Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 3 Jun 2008 13:01:43 +0000 Subject: [PATCH] Make sure to clear JS_WaitMedia when operator mounts a Volume. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7099 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/askdir.c | 8 +++++--- bacula/technotes-2.3 | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bacula/src/stored/askdir.c b/bacula/src/stored/askdir.c index 39c5f46088..47250e7cbb 100644 --- a/bacula/src/stored/askdir.c +++ b/bacula/src/stored/askdir.c @@ -493,7 +493,7 @@ bool dir_ask_sysop_to_create_appendable_volume(DCR *dcr) } got_vol = dir_find_next_appendable_volume(dcr); /* get suggested volume */ if (got_vol) { - return true; + goto get_out; } else { if (stat == W_TIMEOUT || stat == W_MOUNT) { Mmsg(dev->errmsg, _( @@ -539,6 +539,8 @@ bool dir_ask_sysop_to_create_appendable_volume(DCR *dcr) } Dmsg1(100, "Someone woke me for device %s\n", dev->print_name()); } + +get_out: set_jcr_job_status(jcr, JS_Running); dir_send_job_status(jcr); Dmsg0(100, "leave dir_ask_sysop_to_mount_create_appendable_volume\n"); @@ -618,7 +620,7 @@ bool dir_ask_sysop_to_mount_volume(DCR *dcr, int mode) if (dev->poll) { Dmsg1(400, "Poll timeout in mount vol on device %s\n", dev->print_name()); Dmsg1(400, "Blocked=%s\n", dev->print_blocked()); - goto bail_out; + goto get_out; } if (stat == W_TIMEOUT) { @@ -641,7 +643,7 @@ bool dir_ask_sysop_to_mount_volume(DCR *dcr, int mode) break; } -bail_out: +get_out: set_jcr_job_status(jcr, JS_Running); dir_send_job_status(jcr); Dmsg0(400, "leave dir_ask_sysop_to_mount_volume\n"); diff --git a/bacula/technotes-2.3 b/bacula/technotes-2.3 index f74621a780..8f175cf0ff 100644 --- a/bacula/technotes-2.3 +++ b/bacula/technotes-2.3 @@ -24,6 +24,8 @@ Add long term statistics job table General: +03Jun08 +kes Make sure to clear JS_WaitMedia when operator mounts a Volume. 31May08 kes Add create_postgresql_database.sql to Win32 installer. Should fix problem reported by Juilio Monteiro. -- 2.39.5