mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
PR-839 - Update pt-mysql-summary
- Reversed condition, so default is transaction_isolation, not tx_isolation - Removed extra variable: we have variable $version, defined before - Fixed test cases
This commit is contained in:
@@ -2096,10 +2096,9 @@ section_innodb () {
|
|||||||
local bp_dirt="$(get_var Innodb_buffer_pool_pages_dirty "$status_file")"
|
local bp_dirt="$(get_var Innodb_buffer_pool_pages_dirty "$status_file")"
|
||||||
local bp_fill=$((${bp_pags} - ${bp_free}))
|
local bp_fill=$((${bp_pags} - ${bp_free}))
|
||||||
|
|
||||||
local mysql_version=$(get_var version "$variables_file" | awk -F'-' '{print $1}')
|
local transaction_isolation_var="transaction_isolation"
|
||||||
local transaction_isolation_var="tx_isolation"
|
if [ "$version" '<' "5.7.20" ]; then # false if version >= 5.7.20
|
||||||
if [ "$mysql_version" '>' "5.7.19" ]; then # true if version >= 5.7.20
|
transaction_isolation_var="tx_isolation"
|
||||||
transaction_isolation_var="transaction_isolation"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
name_val "Buffer Pool Fill" "$(fuzzy_pct ${bp_fill} ${bp_pags})"
|
name_val "Buffer Pool Fill" "$(fuzzy_pct ${bp_fill} ${bp_pags})"
|
||||||
|
@@ -1016,10 +1016,9 @@ section_innodb () {
|
|||||||
local bp_fill=$((${bp_pags} - ${bp_free}))
|
local bp_fill=$((${bp_pags} - ${bp_free}))
|
||||||
|
|
||||||
# dynamically allocate variable name - transaction_isolation
|
# dynamically allocate variable name - transaction_isolation
|
||||||
local mysql_version=$(get_var version "$variables_file" | awk -F'-' '{print $1}')
|
local transaction_isolation_var="transaction_isolation"
|
||||||
local transaction_isolation_var="tx_isolation"
|
if [ "$version" '<' "5.7.20" ]; then # false if version >= 5.7.20
|
||||||
if [ "$mysql_version" '>' "5.7.19" ]; then # true if version >= 5.7.20
|
transaction_isolation_var="tx_isolation"
|
||||||
transaction_isolation_var="transaction_isolation"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
name_val "Buffer Pool Fill" "$(fuzzy_pct ${bp_fill} ${bp_pags})"
|
name_val "Buffer Pool Fill" "$(fuzzy_pct ${bp_fill} ${bp_pags})"
|
||||||
|
@@ -259,7 +259,7 @@ Specify --databases or --all-databases to dump and summarize schemas
|
|||||||
Thread Concurrency | 0
|
Thread Concurrency | 0
|
||||||
Concurrency Tickets | 5000
|
Concurrency Tickets | 5000
|
||||||
Commit Concurrency | 0
|
Commit Concurrency | 0
|
||||||
Txn Isolation Level |
|
Txn Isolation Level | REPEATABLE-READ
|
||||||
Adaptive Flushing | ON
|
Adaptive Flushing | ON
|
||||||
Adaptive Checkpoint |
|
Adaptive Checkpoint |
|
||||||
Checkpoint Age | 69k
|
Checkpoint Age | 69k
|
||||||
|
@@ -264,7 +264,7 @@ Specify --databases or --all-databases to dump and summarize schemas
|
|||||||
Thread Concurrency | 0
|
Thread Concurrency | 0
|
||||||
Concurrency Tickets | 5000
|
Concurrency Tickets | 5000
|
||||||
Commit Concurrency | 0
|
Commit Concurrency | 0
|
||||||
Txn Isolation Level |
|
Txn Isolation Level | REPEATABLE-READ
|
||||||
Adaptive Flushing | ON
|
Adaptive Flushing | ON
|
||||||
Adaptive Checkpoint |
|
Adaptive Checkpoint |
|
||||||
Checkpoint Age | 0
|
Checkpoint Age | 0
|
||||||
|
Reference in New Issue
Block a user