From: Eric Bollengier Date: Mon, 7 Dec 2020 10:46:23 +0000 (+0100) Subject: Do not hardcode FD Caps X-Git-Tag: Release-11.3.2~948 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af1e027b7e184f0ffca7db81f352d926b387e18c;p=thirdparty%2Fbacula.git Do not hardcode FD Caps --- diff --git a/bacula/src/filed/hello.c b/bacula/src/filed/hello.c index 10654e7a8..dc7250907 100644 --- a/bacula/src/filed/hello.c +++ b/bacula/src/filed/hello.c @@ -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)