From 08ea01aa121e0f601a0d406e77fed58ee75f413d Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 21 Dec 2008 17:02:13 +0000 Subject: [PATCH] Use precalculated variable git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8216 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/migrate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.5