summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNirbhay Choubey <nirbhay@mariadb.com>2016-08-03 22:15:57 -0400
committerNirbhay Choubey <nirbhay@mariadb.com>2016-08-03 22:15:57 -0400
commit44e3046d3b09a21e21295979d6ddad9f332ebadd (patch)
tree4d289d1bf4c2bc121dceca6596b9905b51aae54d /scripts
parentecdb2b6e86d4bef2718eaec61f1edd1c11e41e1a (diff)
downloadmariadb-git-44e3046d3b09a21e21295979d6ddad9f332ebadd.tar.gz
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.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/wsrep_sst_rsync.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/wsrep_sst_rsync.sh b/scripts/wsrep_sst_rsync.sh
index 3202087f526..7f0901c10fb 100644
--- a/scripts/wsrep_sst_rsync.sh
+++ b/scripts/wsrep_sst_rsync.sh
@@ -176,7 +176,8 @@ then
[ "$OS" == "Linux" ] && count=$(grep -c processor /proc/cpuinfo)
[ "$OS" == "Darwin" -o "$OS" == "FreeBSD" ] && count=$(sysctl -n hw.ncpu)
- find . -maxdepth 1 -mindepth 1 -type d -print0 | xargs -I{} -0 -P $count \
+ find . -maxdepth 1 -mindepth 1 -type d -not -name "lost+found" -print0 | \
+ xargs -I{} -0 -P $count \
rsync --owner --group --perms --links --specials \
--ignore-times --inplace --recursive --delete --quiet \
$WHOLE_FILE_OPT --exclude '*/ib_logfile*' "$WSREP_SST_OPT_DATA"/{}/ \