]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl cleanup
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 17 Dec 2008 15:48:05 +0000 (15:48 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 17 Dec 2008 15:48:05 +0000 (15:48 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8179 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/migrate.c

index b2d3fb425645315f6e5afba81304701ef0b331fd..5e361c6205e505a1eb99711399f4d3fc1cbc66f1 100644 (file)
@@ -1160,13 +1160,11 @@ void migration_cleanup(JCR *jcr, int TermCode)
        *   - copy any Log records to the new JobId
        */
       if (jcr->get_JobType() == JT_COPY && jcr->JobStatus == JS_Terminated) {
-         UAContext *ua = new_ua_context(jcr);
          /* Copy JobLog to new JobId */
          Mmsg(query, "INSERT INTO Log (JobId, Time, LogText ) " 
                       "SELECT %s, Time, LogText FROM Log WHERE JobId=%s",
               new_jobid, old_jobid);
          db_sql_query(mig_jcr->db, query.c_str(), NULL, NULL);
-         free_ua_context(ua);
       } 
 
       if (!db_get_job_record(jcr, jcr->db, &jcr->jr)) {