mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:30:16 +00:00
Improved formatting of the ndb status a bit
This commit is contained in:
@@ -1586,7 +1586,7 @@ format_ndb_status() {
|
|||||||
local file=$1
|
local file=$1
|
||||||
|
|
||||||
[ -e "$file" ] || return
|
[ -e "$file" ] || return
|
||||||
cat "$file"
|
egrep '^[ \t]*Name:|[ \t]*Status:' ndb_status.txt|sed 's/^[ \t]*//g'|while read line; do echo $line; echo $line | grep '^Status:'>/dev/null && echo ; done
|
||||||
}
|
}
|
||||||
|
|
||||||
format_overall_db_stats () {
|
format_overall_db_stats () {
|
||||||
|
@@ -561,8 +561,8 @@ format_ndb_status() {
|
|||||||
local file=$1
|
local file=$1
|
||||||
|
|
||||||
[ -e "$file" ] || return
|
[ -e "$file" ] || return
|
||||||
# at the time being, just cat the file.
|
# We could use "& \n" but that does not seem to work on bsd sed.
|
||||||
cat "$file"
|
egrep '^[ \t]*Name:|[ \t]*Status:' ndb_status.txt|sed 's/^[ \t]*//g'|while read line; do echo $line; echo $line | grep '^Status:'>/dev/null && echo ; done
|
||||||
}
|
}
|
||||||
|
|
||||||
# Summarizes per-database statistics for a bunch of different things: count of
|
# Summarizes per-database statistics for a bunch of different things: count of
|
||||||
|
Reference in New Issue
Block a user