From: Eric Bollengier Date: Sun, 9 Nov 2008 21:23:24 +0000 (+0000) Subject: ebl cleanup X-Git-Tag: Release-3.0.0~604 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b1ca63fa3ac35d6296beb900802786aea1389f12;p=bacula%2Fbacula ebl cleanup git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8021 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/patches/testing/fix_maxwaittime.patch b/bacula/patches/testing/fix_maxwaittime.patch index dcc9593453..810cef93bd 100644 --- a/bacula/patches/testing/fix_maxwaittime.patch +++ b/bacula/patches/testing/fix_maxwaittime.patch @@ -1,25 +1,34 @@ Index: src/dird/job.c =================================================================== ---- src/dird/job.c (revision 7939) -+++ src/dird/job.c (working copy) -@@ -549,9 +549,10 @@ +--- src/dird/job.c (révision 8005) ++++ src/dird/job.c (copie de travail) +@@ -545,13 +545,20 @@ + { + bool cancel = false; + JOB *job = jcr->job; ++ utime_t current=0; + if (!job_waiting(jcr)) { return false; } - Dmsg3(200, "check maxwaittime %u - %u >= %u\n", watchdog_time, jcr->wait_time, job->MaxWaitTime); -- if (job->MaxWaitTime != 0 && ++ ++ if (jcr->wait_time) { ++ current = watchdog_time - jcr->wait_time; ++ } ++ ++ Dmsg3(200, "check maxwaittime %u >= %u\n", ++ current + jcr->wait_time_sum, job->MaxWaitTime); + if (job->MaxWaitTime != 0 && - (watchdog_time - jcr->wait_time) >= job->MaxWaitTime) { -+ Dmsg3(200, "check maxwaittime %u - %u >= %u\n", -+ (watchdog_time - jcr->wait_time), jcr->wait_time, job->MaxWaitTime); -+ if (job->MaxWaitTime != 0 && jcr->wait_time != 0 && -+ (watchdog_time - jcr->wait_time + jcr->wait_time_sum) >= job->MaxWaitTime) { ++ (current + jcr->wait_time_sum) >= job->MaxWaitTime) { cancel = true; } Index: src/jcr.h =================================================================== ---- src/jcr.h (revision 7939) -+++ src/jcr.h (working copy) +--- src/jcr.h (révision 8005) ++++ src/jcr.h (copie de travail) @@ -216,7 +216,8 @@ time_t start_time; /* when job actually started */ time_t run_time; /* used for computing speed */ @@ -32,8 +41,8 @@ Index: src/jcr.h POOLMEM *stime; /* start time for incremental/differential */ Index: src/lib/jcr.c =================================================================== ---- src/lib/jcr.c (revision 7939) -+++ src/lib/jcr.c (working copy) +--- src/lib/jcr.c (révision 8005) ++++ src/lib/jcr.c (copie de travail) @@ -738,41 +738,29 @@ return priority; }