]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/2.4.x/2.4.2-mig-message.patch
Rework patches
[bacula/bacula] / bacula / patches / 2.4.x / 2.4.2-mig-message.patch
1
2  This patch causes a message to be printed if the migration job finds that
3  the target job has already been migrated:
4
5     JobId %s already migrated probably by another Job. Migration stopped.
6
7   It can be applied to 2.4.2 (not to previous versions) with:
8
9   cd <bacula-source>
10   patch -p0 <2.4.2-mig-message.patch
11   ./configure <your-options>
12   make
13   ...
14   make install
15
16
17 Index: src/dird/migrate.c
18 ===================================================================
19 --- src/dird/migrate.c  (revision 7444)
20 +++ src/dird/migrate.c  (working copy)
21 @@ -284,6 +284,8 @@
22     }
23     /* Make sure this job was not already migrated */
24     if (jcr->previous_jr.JobType != JT_BACKUP) {
25 +      Jmsg(jcr, M_INFO, 0, _("JobId %s already migrated probably by another Job. Migration stopped.\n"),
26 +         edit_int64(jcr->previous_jr.JobId, ed1));
27        set_jcr_job_status(jcr, JS_Terminated);
28        migration_cleanup(jcr, jcr->JobStatus);
29        return true;