]> git.sur5r.net Git - bacula/bacula/commitdiff
kes This patch fixes bug #1003 where putting the message output from
authorKern Sibbald <kern@sibbald.com>
Sun, 4 Nov 2007 11:10:30 +0000 (11:10 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 4 Nov 2007 11:10:30 +0000 (11:10 +0000)
     a Verify job into the catalog results in a recursive loop.  The problem
     seems to show up only with postgresql (to be verified).

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@5843 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/2.2.5-verify-loop.patch [new file with mode: 0644]
bacula/src/dird/verify.c
bacula/src/version.h

diff --git a/bacula/patches/2.2.5-verify-loop.patch b/bacula/patches/2.2.5-verify-loop.patch
new file mode 100644 (file)
index 0000000..9016cfe
--- /dev/null
@@ -0,0 +1,33 @@
+
+ This patch fixes bug #1003 where putting the message output from 
+ a Verify job into the catalog results in a recursive loop.  The problem
+ seems to show up only with postgresql (to be verified).
+
+ Apply it to version 2.2.5 (or probably any previous 2.2.x version) with
+
+ cd <bacula-source>
+ ./configure <your-options>  not necessary if already configured
+ patch -p0 <2.2.5-verify-loop.patch
+ make
+ ...
+ make install
+
+
+Index: src/dird/verify.c
+===================================================================
+--- src/dird/verify.c  (revision 5814)
++++ src/dird/verify.c  (working copy)
+@@ -767,11 +767,11 @@
+       return 1;
+    }
+    if (!jcr->fn_printed) {
+-      Jmsg(jcr, M_INFO, 0, _("\nThe following files are in the Catalog but not on %s:\n"),
++      Qmsg(jcr, M_INFO, 0, _("\nThe following files are in the Catalog but not on %s:\n"),
+        jcr->JobLevel == L_VERIFY_VOLUME_TO_CATALOG ? "the Volume(s)" : "disk");
+       jcr->fn_printed = true;
+    }
+-   Jmsg(jcr, M_INFO, 0, "      %s%s\n", row[0]?row[0]:"", row[1]?row[1]:"");
++   Qmsg(jcr, M_INFO, 0, "      %s%s\n", row[0]?row[0]:"", row[1]?row[1]:"");
+    return 0;
+ }
index 8562add9dbac565703d48c362e3699f8f9042c2d..559eb0eaeab7e9f02a700eeb3ff74d9fb4b6d8ba 100644 (file)
@@ -767,11 +767,11 @@ static int missing_handler(void *ctx, int num_fields, char **row)
       return 1;
    }
    if (!jcr->fn_printed) {
-      Jmsg(jcr, M_INFO, 0, _("\nThe following files are in the Catalog but not on %s:\n"),
+      Qmsg(jcr, M_INFO, 0, _("\nThe following files are in the Catalog but not on %s:\n"),
        jcr->JobLevel == L_VERIFY_VOLUME_TO_CATALOG ? "the Volume(s)" : "disk");
       jcr->fn_printed = true;
    }
-   Jmsg(jcr, M_INFO, 0, "      %s%s\n", row[0]?row[0]:"", row[1]?row[1]:"");
+   Qmsg(jcr, M_INFO, 0, "      %s%s\n", row[0]?row[0]:"", row[1]?row[1]:"");
    return 0;
 }
 
index 817c8074272382109997da0e245c90829f76d91c..113970680e3e8e35ea4b38533d02329de73ca996 100644 (file)
@@ -4,8 +4,8 @@
 
 #undef  VERSION
 #define VERSION "2.2.6"
-#define BDATE   "02 November 2007"
-#define LSMDATE "02Nov07"
+#define BDATE   "04 November 2007"
+#define LSMDATE "04Nov07"
 
 #define PROG_COPYRIGHT "Copyright (C) %d-2007 Free Software Foundation Europe e.V.\n"
 #define BYEAR "2007"       /* year for copyright messages in progs */