From: Marco van Wieringen Date: Sat, 24 Oct 2009 09:29:06 +0000 (+0200) Subject: Set tries to 1 for a non-timeout mount or unmount operation. X-Git-Tag: Release-5.0.0~281^2~41 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1088ab437976ba76e172757a25de922fc1728890;p=bacula%2Fbacula Set tries to 1 for a non-timeout mount or unmount operation. --- diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index f6db91c261..36b03d9236 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -2164,7 +2164,7 @@ bool DEVICE::do_tape_mount(int mount, int dotimeout) /* Try at most 10 times to (un)mount the device. This should perhaps be configurable. */ tries = 10; } else { - tries = 0; + tries = 1; } results = get_memory(4000); @@ -2222,7 +2222,7 @@ bool DEVICE::do_file_mount(int mount, int dotimeout) /* Try at most 10 times to (un)mount the device. This should perhaps be configurable. */ tries = 10; } else { - tries = 0; + tries = 1; } results = get_memory(4000);