From: Eric Bollengier Date: Tue, 30 Dec 2008 11:05:34 +0000 (+0000) Subject: ebl add small cleanup patch X-Git-Tag: Release-3.0.0~400 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8f6d7c4934365408ae8487da184f4c2a1c1c1b60;p=bacula%2Fbacula ebl add small cleanup patch git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8259 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/patches/testing/improve_despool_attributes.patch b/bacula/patches/testing/improve_despool_attributes.patch new file mode 100644 index 0000000000..85854cd83c --- /dev/null +++ b/bacula/patches/testing/improve_despool_attributes.patch @@ -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);