]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Do not hardcode FD Caps
authorEric Bollengier <eric@baculasystems.com>
Mon, 7 Dec 2020 10:46:23 +0000 (11:46 +0100)
committerEric Bollengier <eric@baculasystems.com>
Sat, 12 Dec 2020 15:35:44 +0000 (16:35 +0100)
bacula/src/filed/hello.c

index 5a9c1659c16d0c69325a9077552acb04b5466c43..4ff17c3530b202e337897307a43bf05937a4e99c 100644 (file)
@@ -148,12 +148,23 @@ bool send_hello_sd(JCR *jcr, char *Job, int tlspsk)
  */
 bool send_fdcaps(JCR *jcr, BSOCK *sd)
 {
+   int do_dedup=0;
    int rehydration = 0; /* 0 : the SD do rehydration */
+
+#if BEEF
    if (jcr->dedup_use_cache) {
       rehydration = 1; /* 1 : the FD do rehydration */
    }
-   Dmsg1(200, "Send caps to SD dedup=1 rehydration=%d\n", rehydration);
-   return sd->fsend("fdcaps: dedup=1 rehydration=%d proxy=%d\n", rehydration, jcr->director->remote);
+   do_dedup=1;
+#endif
+
+   Dmsg1(200, "Send caps to SD dedup=0 rehydration=%d\n",
+         do_dedup,
+         rehydration);
+
+   return sd->fsend("fdcaps: dedup=0 rehydration=%d proxy=%d\n",
+                    do_dedup, rehydration,
+                    jcr->director->remote);
 }
 
 bool recv_sdcaps(JCR *jcr)