From cf146ca8d2cf54f99730a51a60243f3244e453d3 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 30 Dec 2008 11:05:34 +0000 Subject: [PATCH] ebl add small cleanup patch git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8259 91ce42f0-d328-0410-95d8-f526ca767f89 --- .../testing/improve_despool_attributes.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 bacula/patches/testing/improve_despool_attributes.patch 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); -- 2.39.5