summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Goryavsky <julius.goryavsky@mariadb.com>2021-08-15 21:12:58 +0200
committerJulius Goryavsky <julius.goryavsky@mariadb.com>2021-08-15 21:12:58 +0200
commit094e03916670891b87ef1d95cf52ce6248c537ed (patch)
treec432d8030d8e6a5b21dffacf1cce16add79396c7
parentd1a948cfaaab67e699674af4c11efad3868a629d (diff)
downloadmariadb-git-094e03916670891b87ef1d95cf52ce6248c537ed.tar.gz
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.
-rw-r--r--scripts/wsrep_sst_rsync.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/wsrep_sst_rsync.sh b/scripts/wsrep_sst_rsync.sh
index fc9f5017937..cc1912abcd0 100644
--- a/scripts/wsrep_sst_rsync.sh
+++ b/scripts/wsrep_sst_rsync.sh
@@ -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