1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

MDEV-26340: rsync uses --whole-file only in wan mode

This commit fixes a mistake where the --whole-file option
is used by rsync SST in WAN mode instead of LAN.
This commit is contained in:
Julius Goryavsky
2021-08-15 21:12:58 +02:00
parent d1a948cfaa
commit 094e039166

View File

@@ -388,7 +388,7 @@ EOF
# Use deltaxfer only for WAN
inv=$(basename "$0")
WHOLE_FILE_OPT=""
if [ "${inv%wsrep_sst_rsync_wan*}" != "$inv" ]; then
if [ "${inv%wsrep_sst_rsync_wan*}" = "$inv" ]; then
WHOLE_FILE_OPT="--whole-file"
fi