From: Kern Sibbald Date: Sun, 28 Jan 2007 11:15:28 +0000 (+0000) Subject: Fix maxruntime bug #621. X-Git-Tag: Release-2.0.3~46 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d29e38bdda82fd1fcbae1cd2f76fde06a3e943dd;p=bacula%2Fbacula Fix maxruntime bug #621. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.0@4063 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/ChangeLog b/bacula/ChangeLog index 81144ffa9c..33fbc808ff 100644 --- a/bacula/ChangeLog +++ b/bacula/ChangeLog @@ -3,6 +3,8 @@ General: Version 2.0.2 released: xx January 2007 +28Jan08 +kes Fix maxruntime bug #621. 27Jan07 kes Get current main CVS .specs for RedHat, SuSE, Mandrake. 26Jan07 diff --git a/bacula/ReleaseNotes b/bacula/ReleaseNotes index c34349e25c..c1d0c7d2ae 100644 --- a/bacula/ReleaseNotes +++ b/bacula/ReleaseNotes @@ -5,6 +5,8 @@ This is a bug fix release to version 2.0.1: +28Jan08 +kes Fix maxruntime bug #621. 27Jan07 kes Get current main CVS .specs for RedHat, SuSE, Mandrake. 26Jan07 diff --git a/bacula/src/dird/job.c b/bacula/src/dird/job.c index 5063490ade..1ca59f857f 100644 --- a/bacula/src/dird/job.c +++ b/bacula/src/dird/job.c @@ -565,8 +565,6 @@ static bool job_check_maxwaittime(JCR *control_jcr, JCR *jcr) */ static bool job_check_maxruntime(JCR *control_jcr, JCR *jcr) { - bool cancel = false; - if (jcr->job->MaxRunTime == 0 || job_canceled(jcr)) { return false; } @@ -606,7 +604,7 @@ static bool job_check_maxruntime(JCR *control_jcr, JCR *jcr) Dmsg3(200, "MaxRunTime result: %scancel JCR %p (%s)\n", cancel ? "" : "do not ", jcr, jcr->job); #endif - return cancel; + return true; } /* diff --git a/bacula/src/version.h b/bacula/src/version.h index e1c3c5cdf7..2461938a3f 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -4,8 +4,8 @@ #undef VERSION #define VERSION "2.0.2" -#define BDATE "26 January 2007" -#define LSMDATE "26Jan07" +#define BDATE "28 January 2007" +#define LSMDATE "28Jan07" #define PROG_COPYRIGHT "Copyright (C) %d-2007 Free Software Foundation Europe e.V.\n" #define BYEAR "2007" /* year for copyright messages in progs */ diff --git a/bacula/technotes-2.0 b/bacula/technotes-2.0 index b4785523d5..e8f41341a1 100644 --- a/bacula/technotes-2.0 +++ b/bacula/technotes-2.0 @@ -2,6 +2,8 @@ General: Version 2.0.2 released: xx January 2007 +28Jan08 +kes Fix maxruntime bug #621. 27Jan07 kes Get current main CVS .specs for RedHat, SuSE, Mandrake. 26Jan07