Use SchemaIterator for filtering --sync-to-master and --replicate. Return arrayref from TableChecksum::find_replication_differences().

This commit is contained in:
Daniel Nichter
2012-05-21 15:50:40 -06:00
parent 2c5ea7c49d
commit d0d296ee16
3 changed files with 85 additions and 51 deletions

View File

@@ -480,10 +480,9 @@ sub find_replication_differences {
. "FROM $table "
. "WHERE master_cnt <> this_cnt OR master_crc <> this_crc "
. "OR ISNULL(master_crc) <> ISNULL(this_crc)";
PTDEBUG && _d($sql);
my $diffs = $dbh->selectall_arrayref($sql, { Slice => {} });
return @$diffs;
return $diffs;
}
sub _d {