--- /dev/null
+
+ This patch causes a message to be printed if the migration job finds that
+ the target job has already been migrated:
+
+ JobId %s already migrated probably by another Job. Migration stopped.
+
+ It can be applied to 2.4.2 (not to previous versions) with:
+
+ cd <bacula-source>
+ patch -p0 <2.4.2-mig-message.patch
+ ./configure <your-options>
+ make
+ ...
+ make install
+
+
+Index: src/dird/migrate.c
+===================================================================
+--- src/dird/migrate.c (revision 7444)
++++ src/dird/migrate.c (working copy)
+@@ -284,6 +284,8 @@
+ }
+ /* Make sure this job was not already migrated */
+ if (jcr->previous_jr.JobType != JT_BACKUP) {
++ Jmsg(jcr, M_INFO, 0, _("JobId %s already migrated probably by another Job. Migration stopped.\n"),
++ edit_int64(jcr->previous_jr.JobId, ed1));
+ set_jcr_job_status(jcr, JS_Terminated);
+ migration_cleanup(jcr, jcr->JobStatus);
+ return true;
}
/* Make sure this job was not already migrated */
if (jcr->previous_jr.JobType != JT_BACKUP) {
+ Jmsg(jcr, M_INFO, 0, _("JobId %s already migrated probably by another Job. Migration stopped.\n"),
+ edit_int64(jcr->previous_jr.JobId, ed1));
set_jcr_job_status(jcr, JS_Terminated);
migration_cleanup(jcr, jcr->JobStatus);
return true;
*/
#undef VERSION
-#define VERSION "2.4.2"
-#define BDATE "26 July 2008"
-#define LSMDATE "26Jul08"
+#define VERSION "2.4.3"
+#define BDATE "08 August 2008"
+#define LSMDATE "08Aug08"
#define PROG_COPYRIGHT "Copyright (C) %d-2008 Free Software Foundation Europe e.V.\n"
#define BYEAR "2008" /* year for copyright messages in progs */
Technical notes on version 2.4
General:
+08Aug08
+kes Add message to migration job when the target job is already migrated.
+ This closes bug #1129.
+
Release Version 2.4.2
26Jul08
kes When a migration job actually runs, re-check the Job record