summaryrefslogtreecommitdiff
path: root/scripts/wsrep_sst_xtrabackup.sh
diff options
context:
space:
mode:
authorDaniel Black <grooverdan@users.sourceforge.net>2018-01-14 11:38:12 +1100
committerDaniel Black <grooverdan@users.sourceforge.net>2018-01-14 23:31:13 +1100
commitcc8abb21e3475ca81d62ac48013d7f32ea49751f (patch)
tree1c2779e92263cef378dd4f6af95303ee5b6193fc /scripts/wsrep_sst_xtrabackup.sh
parente78e308e818a4a763ebb981302851f58f4c42bba (diff)
downloadmariadb-git-cc8abb21e3475ca81d62ac48013d7f32ea49751f.tar.gz
wsrep_sst_xtrabackup*: du -s removed lessens output
and only displays the summary. As this is the only bit that is used there will be less du,kernel,awk CPU usage.
Diffstat (limited to 'scripts/wsrep_sst_xtrabackup.sh')
-rw-r--r--scripts/wsrep_sst_xtrabackup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/wsrep_sst_xtrabackup.sh b/scripts/wsrep_sst_xtrabackup.sh
index 22ee7b7658b..20e84885380 100644
--- a/scripts/wsrep_sst_xtrabackup.sh
+++ b/scripts/wsrep_sst_xtrabackup.sh
@@ -197,7 +197,7 @@ get_transfer()
get_footprint()
{
pushd $WSREP_SST_OPT_DATA 1>/dev/null
- payload=$(find . -regex '.*\.ibd$\|.*\.MYI$\|.*\.MYD$\|.*ibdata1$' -type f -print0 | du --files0-from=- --block-size=1 -c | awk 'END { print $1 }')
+ payload=$(find . -regex '.*\.ibd$\|.*\.MYI$\|.*\.MYD$\|.*ibdata1$' -type f -print0 | du --files0-from=- --block-size=1 -c -s | awk 'END { print $1 }')
if $MY_PRINT_DEFAULTS xtrabackup | grep -q -- "--compress";then
# QuickLZ has around 50% compression ratio
# When compression/compaction used, the progress is only an approximate.