mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
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.
This commit is contained in:
@ -399,7 +399,7 @@ get_transfer()
|
|||||||
get_footprint()
|
get_footprint()
|
||||||
{
|
{
|
||||||
pushd $WSREP_SST_OPT_DATA 1>/dev/null
|
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
|
if $MY_PRINT_DEFAULTS xtrabackup | grep -q -- "--compress";then
|
||||||
# QuickLZ has around 50% compression ratio
|
# QuickLZ has around 50% compression ratio
|
||||||
# When compression/compaction used, the progress is only an approximate.
|
# When compression/compaction used, the progress is only an approximate.
|
||||||
|
@ -197,7 +197,7 @@ get_transfer()
|
|||||||
get_footprint()
|
get_footprint()
|
||||||
{
|
{
|
||||||
pushd $WSREP_SST_OPT_DATA 1>/dev/null
|
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
|
if $MY_PRINT_DEFAULTS xtrabackup | grep -q -- "--compress";then
|
||||||
# QuickLZ has around 50% compression ratio
|
# QuickLZ has around 50% compression ratio
|
||||||
# When compression/compaction used, the progress is only an approximate.
|
# When compression/compaction used, the progress is only an approximate.
|
||||||
|
Reference in New Issue
Block a user