From 302cb7f4576d6da87ace012f36b698a22559c43e Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Fri, 26 Oct 2012 16:24:33 -0600 Subject: [PATCH] Don't check binlog_format on slaves ! >= 5.1.5. --- bin/pt-table-checksum | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/pt-table-checksum b/bin/pt-table-checksum index e4330eba..3a485004 100755 --- a/bin/pt-table-checksum +++ b/bin/pt-table-checksum @@ -8554,11 +8554,13 @@ sub main { PTDEBUG && _d(scalar @$slaves, 'slaves found'); # https://bugs.launchpad.net/percona-toolkit/+bug/938068 - if ( $o->get('check-binlog-format') ) { + if ( $o->get('check-binlog-format') + && VersionParser->new($master_dbh) >= '5.1.5' ) { my ($master_binlog) = $master_dbh->selectrow_array( 'SELECT @@binlog_format'); my $err = ''; for my $slave_cxn (@$slaves) { + next unless VersionParser->new($slave_cxn->dbh) >= '5.1.5'; my ($slave_binlog) = $slave_cxn->dbh->selectrow_array( 'SELECT @@binlog_format'); if ( $master_binlog ne $slave_binlog ) {