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