MockSyncStream

MockSyncStream simulates a TableSyncStream module.  It’s used by mk-upgrade to quickly compare result sets for any differences.  If any are found, mk-upgrade writes all remaining rows to an outfile.  This causes RowDiff::compare_sets() to terminate early.  So we don’t actually sync anything.  Unlike TableSyncStream, we’re not working with a table but an arbitrary query executed on two servers.

Functions

new

sub new

get_sql

sub get_sql

same_row

sub same_row

not_in_right

sub not_in_right

not_in_left

sub not_in_left

done_with_rows

sub done_with_rows

done

sub done

key_cols

sub key_cols

prepare

sub prepare

pending_changes

sub pending_changes

get_result_set_struct

sub get_result_set_struct

as_arrayref

sub as_arrayref

_d

sub _d
TableSyncStream is a table sync algo that selects all rows.
sub new
sub get_sql
sub same_row
sub not_in_right
sub not_in_left
sub done_with_rows
sub done
sub key_cols
sub prepare
sub pending_changes
sub get_result_set_struct
sub as_arrayref
sub _d
Close