From: Kern Sibbald Date: Sun, 21 Dec 2008 17:02:13 +0000 (+0000) Subject: Use precalculated variable X-Git-Tag: Release-7.0.0~3580 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=08ea01aa121e0f601a0d406e77fed58ee75f413d;p=bacula%2Fbacula Use precalculated variable git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8216 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/dird/migrate.c b/bacula/src/dird/migrate.c index 8ab5923e45..8ffeb08b8d 100644 --- a/bacula/src/dird/migrate.c +++ b/bacula/src/dird/migrate.c @@ -1164,10 +1164,10 @@ void migration_cleanup(JCR *jcr, int TermCode) /* Copy JobLog to new JobId */ Mmsg(query, "INSERT INTO Log (JobId, Time, LogText ) " "SELECT %s, Time, LogText FROM Log WHERE JobId=%s", - edit_uint64(mig_jcr->jr.JobId, ec7), old_jobid); + new_jobid, old_jobid); db_sql_query(mig_jcr->db, query.c_str(), NULL, NULL); Mmsg(query, "UPDATE Job SET Type='%c' WHERE JobId=%s", - (char)JT_JOB_COPY, ec7); + (char)JT_JOB_COPY, new_jobid); db_sql_query(mig_jcr->db, query.c_str(), NULL, NULL); }