TableSyncChunk

TableSyncChunk is a table sync algo that uses discrete chunks.  This package implements a simple sync algorithm:

  • Chunk the table (see TableChunker.pm)
  • Checksum each chunk (state 0)
  • If a chunk differs, make a note to checksum the rows in the chunk (state 1)
  • Checksum them (state 2)
  • If a row differs, it must be synced See TableSyncStream for the TableSync interface this conforms to.

Functions

new

sub new

name

sub name

set_callback

sub set_callback

can_sync

sub can_sync

prepare_to_sync

sub prepare_to_sync

uses_checksum

sub uses_checksum

set_checksum_queries

sub set_checksum_queries

prepare_sync_cycle

sub prepare_sync_cycle

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

pending_changes

sub pending_changes

key_cols

sub key_cols

_d

sub _d
sub new
sub name
sub set_callback
sub can_sync
sub prepare_to_sync
sub uses_checksum
sub set_checksum_queries
sub prepare_sync_cycle
sub get_sql
sub same_row
sub not_in_right
sub not_in_left
sub done_with_rows
sub done
sub pending_changes
sub key_cols
sub _d
Close