mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 05:29:30 +00:00
Merge pull request #297 from moritz/replication-only-when-needed
PT-1509 Only set binlog_format when necessary
This commit is contained in:
@@ -11023,7 +11023,8 @@ sub get_cxn {
|
|||||||
# 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 ( VersionParser->new($dbh) >= '5.1.29' ) {
|
if ( VersionParser->new($dbh) >= '5.1.29'
|
||||||
|
&& ($o->get('replicate') || $o->get('sync-to-master'))) {
|
||||||
$sql = 'SELECT @@binlog_format';
|
$sql = 'SELECT @@binlog_format';
|
||||||
PTDEBUG && _d($dbh, $sql);
|
PTDEBUG && _d($dbh, $sql);
|
||||||
my ($original_binlog_format) = $dbh->selectrow_array($sql);
|
my ($original_binlog_format) = $dbh->selectrow_array($sql);
|
||||||
|
Reference in New Issue
Block a user