]> 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>
Thu, 24 Mar 2022 08:02:57 +0000 (09:02 +0100)
bacula/src/filed/hello.c

index 10654e7a8e31213d192bf6c4702672bd169a0767..dc72509078cddd986a8f3374e4db92f9e0095970 100644 (file)
@@ -152,12 +152,23 @@ bool recv_sdcaps(JCR *jcr) { return false; }
  */
 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)