mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-13 14:39:28 +00:00
PT-1556 binlog_format should be STATEMENT on master
On the master, binlog_format should be always STATEMENT on master Resolves: #PT-1527
This commit is contained in:
@@ -10052,7 +10052,6 @@ sub main {
|
|||||||
# instead, it should check if it's already set to STATEMENT.
|
# instead, it should check if it's already set to STATEMENT.
|
||||||
# This is becase starting with MySQL 5.1.29, changing the format
|
# This is becase starting with MySQL 5.1.29, changing the format
|
||||||
# requires a SUPER user.
|
# requires a SUPER user.
|
||||||
if ( $o->get('check-binlog-format') ) {
|
|
||||||
if ( VersionParser->new($dbh) >= '5.1.5' ) {
|
if ( VersionParser->new($dbh) >= '5.1.5' ) {
|
||||||
$sql = 'SELECT @@binlog_format';
|
$sql = 'SELECT @@binlog_format';
|
||||||
PTDEBUG && _d($dbh, $sql);
|
PTDEBUG && _d($dbh, $sql);
|
||||||
@@ -10076,7 +10075,6 @@ sub main {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
# Set transaction isolation level. We set binlog_format to STATEMENT,
|
# Set transaction isolation level. We set binlog_format to STATEMENT,
|
||||||
# but if the transaction isolation level is set to READ COMMITTED and the
|
# but if the transaction isolation level is set to READ COMMITTED and the
|
||||||
|
Reference in New Issue
Block a user