Class | RR::ReplicationInitializer |
In: |
lib/rubyrep/replication_initializer.rb
|
Parent: | Object |
Ensures all preconditions are met to start with replication
DIFF_DUMP_SIZE | = | 2000 | Size of the replication log column diff_dump | |
DESCRIPTION_SIZE | = | 255 | Size fo the event log column ‘description‘ | |
LONG_DESCRIPTION_SIZE | = | 1000 | Size of the event log column ‘long_description‘ |
session | [RW] | The active Session |
Restores the original sequence settings for the named table. (Actually it sets the sequence increment to 1. If before, it had a different value, then the restoration will not be correct.)
Creates a trigger logging all table changes
Drops the replication trigger of the named table.
Checks in both databases, if the infrastructure tables (change log, event log) exist and creates them if necessary.
Ensures that the sequences of the named table (normally the primary key column) are generated with the correct increment and offset in both left and right database. The sequence is always updated in both databases.
numbers.
Checks for tables that have triggers but are not in the list of configured tables. Removes triggers and restores sequences of those tables.
Ensures that create_table and related statements don‘t print notices to stdout. Then restored original message setting.