]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/testing/improve_despool_attributes.patch
ebl add small cleanup patch
[bacula/bacula] / bacula / patches / testing / improve_despool_attributes.patch
1
2 This patch improve a bit performance during attribute despooling
3
4
5 Index: src/dird/getmsg.c
6 ===================================================================
7 --- src/dird/getmsg.c   (rĂ©vision 8258)
8 +++ src/dird/getmsg.c   (copie de travail)
9 @@ -198,6 +198,11 @@
10           continue;
11        }
12  
13 +      if (bs->msg[0] == 'U') {        /* SD sending attributes */
14 +         Dmsg2(900, "Catalog upd jcr 0x%x: %s", jcr, bs->msg);
15 +         catalog_update(jcr, bs);
16 +         continue;
17 +      }
18        /*
19         * Here we are expecting a message of the following format:
20         *   Jmsg Job=nnn type=nnn level=nnn Message-string
21 @@ -231,11 +236,6 @@
22           catalog_request(jcr, bs);
23           continue;
24        }
25 -      if (bs->msg[0] == 'U') {        /* SD sending attributes */
26 -         Dmsg2(900, "Catalog upd jcr 0x%x: %s", jcr, bs->msg);
27 -         catalog_update(jcr, bs);
28 -         continue;
29 -      }
30        if (bs->msg[0] == 'M') {        /* Mount request */
31           Dmsg1(900, "Mount req: %s", bs->msg);
32           mount_request(jcr, bs, msg);