mirror of
https://github.com/percona/percona-toolkit.git
synced 2026-02-27 02:00:57 +08:00
PT-1536 Updated samples for mysql-summary tests
This commit is contained in:
@@ -1185,6 +1185,10 @@ collect_encrypted_tables() {
|
||||
$CMD_MYSQL $EXT_ARGV --table -ss -e "SELECT TABLE_SCHEMA, TABLE_NAME, CREATE_OPTIONS FROM INFORMATION_SCHEMA.TABLES WHERE CREATE_OPTIONS LIKE '%ENCRYPTION=\"Y\"%';"
|
||||
}
|
||||
|
||||
collect_encrypted_tablespaces() {
|
||||
$CMD_MYSQL $EXT_ARGV --table -ss -e "SELECT SPACE, NAME, SPACE_TYPE from INFORMATION_SCHEMA.INNODB_SYS_TABLESPACES where FLAG&8192 = 8192;"
|
||||
}
|
||||
|
||||
|
||||
|
||||
_NO_FALSE_NEGATIVES=""
|
||||
@@ -1630,6 +1634,14 @@ format_encrypted_tables() {
|
||||
fi
|
||||
}
|
||||
|
||||
format_encrypted_tablespaces() {
|
||||
local encrypted_tablespaces="$1"
|
||||
if [ ! -z "$encrypted_tablespaces" ]; then
|
||||
echo "Encrypted tablespaces:"
|
||||
echo "$encrypted_tablespaces"
|
||||
fi
|
||||
}
|
||||
|
||||
format_mysql_roles() {
|
||||
local file=$1
|
||||
[ -e "$file" ] || return
|
||||
@@ -2510,12 +2522,15 @@ report_mysql_summary () {
|
||||
section "Encryption"
|
||||
local keyring_plugins="$(collect_keyring_plugins)"
|
||||
local encrypted_tables=""
|
||||
local encrypted_tablespaces=""
|
||||
if [ ${OPT_LIST_ENCRYPTED_TABLES} == 'yes' ]; then
|
||||
encrypted_tables="$(collect_encrypted_tables)"
|
||||
encrypted_tablespaces="$(collect_encrypted_tablespaces)"
|
||||
fi
|
||||
|
||||
format_keyring_plugins "$keyring_plugins" "$encrypted_tables"
|
||||
format_encrypted_tables "$encrypted_tables"
|
||||
format_encrypted_tablespaces "$encrypted_tablespaces"
|
||||
|
||||
section "Binary Logging"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user