From e6804e3791ec880d1ddc20bab88d509ee59b40ff Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 23 Jun 2009 13:37:57 +0000 Subject: [PATCH] ebl Update FileSetId when initializing job. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8921 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/cats/sql_update.c | 7 ++++--- bacula/technotes | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bacula/src/cats/sql_update.c b/bacula/src/cats/sql_update.c index 92ecffdfc5..e659a18813 100644 --- a/bacula/src/cats/sql_update.c +++ b/bacula/src/cats/sql_update.c @@ -102,7 +102,7 @@ db_update_job_start_record(JCR *jcr, B_DB *mdb, JOB_DBR *jr) struct tm tm; btime_t JobTDate; int stat; - char ed1[50], ed2[50], ed3[50], ed4[50]; + char ed1[50], ed2[50], ed3[50], ed4[50], ed5[50]; stime = jr->StartTime; (void)localtime_r(&stime, &tm); @@ -111,13 +111,14 @@ db_update_job_start_record(JCR *jcr, B_DB *mdb, JOB_DBR *jr) db_lock(mdb); Mmsg(mdb->cmd, "UPDATE Job SET JobStatus='%c',Level='%c',StartTime='%s'," -"ClientId=%s,JobTDate=%s,PoolId=%s WHERE JobId=%s", +"ClientId=%s,JobTDate=%s,PoolId=%s,FileSetId=%s WHERE JobId=%s", (char)(jcr->JobStatus), (char)(jr->JobLevel), dt, edit_int64(jr->ClientId, ed1), edit_uint64(JobTDate, ed2), edit_int64(jr->PoolId, ed3), - edit_int64(jr->JobId, ed4)); + edit_int64(jr->FileSetId, ed4), + edit_int64(jr->JobId, ed5)); stat = UPDATE_DB(jcr, mdb, mdb->cmd); mdb->changes = 0; diff --git a/bacula/technotes b/bacula/technotes index ba56fb61db..07882980ee 100644 --- a/bacula/technotes +++ b/bacula/technotes @@ -3,6 +3,7 @@ General: 23Jun09 +ebl Update FileSetId when initializing job. ebl Fix compilation problem with message.c ebl Add '*' when volume is online when displaying volume list in restore. Should complete project 31. -- 2.39.5