]> git.sur5r.net Git - bacula/bacula/commitdiff
Use precalculated variable
authorKern Sibbald <kern@sibbald.com>
Sun, 21 Dec 2008 17:02:13 +0000 (17:02 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 21 Dec 2008 17:02:13 +0000 (17:02 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8216 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/migrate.c

index 8ab5923e45c6fd16c47e81ebff870ac51c8a696b..8ffeb08b8da722ec75580ce3e903fb9ec9316070 100644 (file)
@@ -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);
       }