]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/migrate.c
migrate
[bacula/bacula] / bacula / src / dird / migrate.c
index 65ebb0b7f8cfd375cd35fb2d32897f73b3050a05..c5ea91d0f623b7b8675d8e938d0997e0ae539294 100644 (file)
@@ -702,7 +702,7 @@ void migration_cleanup(JCR *jcr, int TermCode)
    update_job_end_record(jcr);        /* update database */
 
    /* Check if we actually did something */
-   if (!prev_jcr) {
+   if (prev_jcr) {
       prev_jcr->JobFiles = jcr->JobFiles = jcr->SDJobFiles;
       prev_jcr->JobBytes = jcr->JobBytes = jcr->SDJobBytes;
       prev_jcr->VolSessionId = jcr->VolSessionId;