Skip to content

Commit

Permalink
MDEV-26340: rsync uses --whole-file only in wan mode
Browse files Browse the repository at this point in the history
This commit fixes a mistake where the --whole-file option
is used by rsync SST in WAN mode instead of LAN.
  • Loading branch information
sysprg committed Aug 15, 2021
1 parent d1a948c commit 094e039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/wsrep_sst_rsync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 094e039

Please sign in to comment.