]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/2.2.5-verify-loop.patch
kes Fix bug #942 where lots of emails where generated when the heartbeat
[bacula/bacula] / bacula / patches / 2.2.5-verify-loop.patch
1
2  This patch fixes bug #1003 where putting the message output from 
3  a Verify job into the catalog results in a recursive loop.  The problem
4  seems to show up only with postgresql (to be verified).
5
6  Apply it to version 2.2.5 (or probably any previous 2.2.x version) with
7
8  cd <bacula-source>
9  ./configure <your-options>  not necessary if already configured
10  patch -p0 <2.2.5-verify-loop.patch
11  make
12  ...
13  make install
14
15
16 Index: src/dird/verify.c
17 ===================================================================
18 --- src/dird/verify.c   (revision 5814)
19 +++ src/dird/verify.c   (working copy)
20 @@ -767,11 +767,11 @@
21        return 1;
22     }
23     if (!jcr->fn_printed) {
24 -      Jmsg(jcr, M_INFO, 0, _("\nThe following files are in the Catalog but not on %s:\n"),
25 +      Qmsg(jcr, M_INFO, 0, _("\nThe following files are in the Catalog but not on %s:\n"),
26         jcr->JobLevel == L_VERIFY_VOLUME_TO_CATALOG ? "the Volume(s)" : "disk");
27        jcr->fn_printed = true;
28     }
29 -   Jmsg(jcr, M_INFO, 0, "      %s%s\n", row[0]?row[0]:"", row[1]?row[1]:"");
30 +   Qmsg(jcr, M_INFO, 0, "      %s%s\n", row[0]?row[0]:"", row[1]?row[1]:"");
31     return 0;
32  }
33