Skip to content

Commit 44e3046

Browse files
author
Nirbhay Choubey
committed
MDEV-10487: Galera SST using rsync does not filter out lost+found
In rsync based SST method, during third phase of data transfer, 'lost+found' should be filtered out while recursively transferring files from various directories under data directory.
1 parent ecdb2b6 commit 44e3046

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/wsrep_sst_rsync.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ then
176176
[ "$OS" == "Linux" ] && count=$(grep -c processor /proc/cpuinfo)
177177
[ "$OS" == "Darwin" -o "$OS" == "FreeBSD" ] && count=$(sysctl -n hw.ncpu)
178178

179-
find . -maxdepth 1 -mindepth 1 -type d -print0 | xargs -I{} -0 -P $count \
179+
find . -maxdepth 1 -mindepth 1 -type d -not -name "lost+found" -print0 | \
180+
xargs -I{} -0 -P $count \
180181
rsync --owner --group --perms --links --specials \
181182
--ignore-times --inplace --recursive --delete --quiet \
182183
$WHOLE_FILE_OPT --exclude '*/ib_logfile*' "$WSREP_SST_OPT_DATA"/{}/ \

0 commit comments

Comments
 (0)