bareos: bareos-12.4 d8d10637

Author Committer Branch Timestamp Parent
mvwieringen adm mvwieringen adm bareos-12.4 2013-05-04 13:14 bareos-12.4 8b23951f Pending
Affected Issues  0000139: export command in a RunScript ressource does not get the correct volume when doing scheduled JobType Copy
Changeset mig_jcr is freed to early.

Because the mig_jcr is already freed in the migration_cleanup() function
all info is lost when we get to the after runscript. This is a design
error so we moved the freeing of the mig_jcr now to just before the Job
actually exits and has done all its work.

Fixes 0000139: export command in a RunScript ressource does not get the
            correct volume when doing scheduled JobType Copy
mod - src/dird/job.c Diff File
mod - src/dird/migrate.c Diff File