From 3d4fa39233e951a32e338ffd94984074b183e821 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 21 Mar 2003 08:14:27 +0000 Subject: [PATCH] Move start time after lock creation git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@389 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/job.c | 4 +--- bacula/src/version.h | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bacula/src/dird/job.c b/bacula/src/dird/job.c index c12788da50..65c69de768 100644 --- a/bacula/src/dird/job.c +++ b/bacula/src/dird/job.c @@ -170,11 +170,9 @@ void run_job(JCR *jcr) */ static void *job_thread(void *arg) { - time_t now; JCR *jcr = (JCR *)arg; pthread_detach(pthread_self()); - time(&now); sm_check(__FILE__, __LINE__, True); if (!acquire_resource_locks(jcr)) { @@ -182,7 +180,7 @@ static void *job_thread(void *arg) } Dmsg0(200, "=====Start Job=========\n"); - jcr->start_time = now; /* set the real start time */ + jcr->start_time = time(NULL); /* set the real start time */ Dmsg2(200, "jcr->JobStatus=%d %c\n", jcr->JobStatus, (char)jcr->JobStatus); if (job_cancelled(jcr)) { update_job_end_record(jcr); diff --git a/bacula/src/version.h b/bacula/src/version.h index 3c915681a6..4d5dc66cfc 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -1,8 +1,8 @@ /* */ #define VERSION "1.30" #define VSTRING "1" -#define BDATE "20 March 2003" -#define LSMDATE "20Mar03" +#define BDATE "21 March 2003" +#define LSMDATE "21Mar03" /* Debug flags */ #define DEBUG 1 -- 2.39.5