mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-17 17:27:57 +00:00
PT-2340 - Support MySQL 8.4
- Fixed staff I broke for 8.0
This commit is contained in:
@@ -163,11 +163,18 @@ cmd_ok \
|
||||
# collect_master_logs_status
|
||||
|
||||
if [ -n "$(get_var log_bin "$p/mysql-variables")" ]; then
|
||||
mysql_version="$(get_var version "$p/mysql-variables")"
|
||||
source_logs_file="mysql-binary-logs"
|
||||
source_status_file="mysql-binary-log-status"
|
||||
if [ "$mysql_version" '<' "8.1" ]; then
|
||||
source_logs_file='mysql-master-logs'
|
||||
source_status_file='mysql-master-status'
|
||||
fi
|
||||
cmd_ok \
|
||||
"test -e $p/mysql-binary-logs" \
|
||||
"test -e $p/$source_logs_file" \
|
||||
"If we have a binlog, a file with the master logs should exist"
|
||||
cmd_ok \
|
||||
"test -e $p/mysql-binary-log-status" \
|
||||
"test -e $p/$source_status_file" \
|
||||
"And likewise for master status"
|
||||
else
|
||||
skip 1 2 "no binlog"
|
||||
|
Reference in New Issue
Block a user