]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl add small cleanup patch
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 30 Dec 2008 11:05:34 +0000 (11:05 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 30 Dec 2008 11:05:34 +0000 (11:05 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8259 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/testing/improve_despool_attributes.patch [new file with mode: 0644]

diff --git a/bacula/patches/testing/improve_despool_attributes.patch b/bacula/patches/testing/improve_despool_attributes.patch
new file mode 100644 (file)
index 0000000..85854cd
--- /dev/null
@@ -0,0 +1,32 @@
+
+This patch improve a bit performance during attribute despooling
+
+
+Index: src/dird/getmsg.c
+===================================================================
+--- src/dird/getmsg.c  (rĂ©vision 8258)
++++ src/dird/getmsg.c  (copie de travail)
+@@ -198,6 +198,11 @@
+          continue;
+       }
++      if (bs->msg[0] == 'U') {        /* SD sending attributes */
++         Dmsg2(900, "Catalog upd jcr 0x%x: %s", jcr, bs->msg);
++         catalog_update(jcr, bs);
++         continue;
++      }
+       /*
+        * Here we are expecting a message of the following format:
+        *   Jmsg Job=nnn type=nnn level=nnn Message-string
+@@ -231,11 +236,6 @@
+          catalog_request(jcr, bs);
+          continue;
+       }
+-      if (bs->msg[0] == 'U') {        /* SD sending attributes */
+-         Dmsg2(900, "Catalog upd jcr 0x%x: %s", jcr, bs->msg);
+-         catalog_update(jcr, bs);
+-         continue;
+-      }
+       if (bs->msg[0] == 'M') {        /* Mount request */
+          Dmsg1(900, "Mount req: %s", bs->msg);
+          mount_request(jcr, bs, msg);