Remove txnmode variable.
authorGreg Sabino Mullane <greg@endpoint.com>
Wed, 28 Jul 2010 03:44:34 +0000 (23:44 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Wed, 28 Jul 2010 03:44:34 +0000 (23:44 -0400)
Bucardo.pm
bucardo.schema

index cd472a7a1d1ee8384013f285b07ae4e790d59fa4..6b886a1a9e48b4aea280de17cb9a066bf3d5b4b7 100644 (file)
@@ -1084,7 +1084,7 @@ sub start_mcp {
 
                         ## Only certain things can be changed "on the fly"
                         ## no critic (ProhibitHardTabs)
-                        for my $val (qw/checksecs stayalive limitdbs do_listen txnmode deletemethod status ping
+                        for my $val (qw/checksecs stayalive limitdbs do_listen deletemethod status ping
                                         analyze_after_copy targetgroup targetdb usecustomselect onetimecopy
                                         lifetimesecs maxkicks rebuild_index/) {
                             $sync->{$syncname}{$val} = $self->{sync}{$syncname}{$val} = $info->{$val};
@@ -4463,9 +4463,9 @@ sub start_kid {
 
         ## Start the main transaction. From here on out, speed is key
         ## Note that all database handles are currently not in a txn (last action was commit or rollback)
-        $targetdbh->do("SET TRANSACTION ISOLATION LEVEL $sync->{txnmode} READ WRITE");
+        $targetdbh->do("SET TRANSACTION ISOLATION LEVEL SERIALIZABLE READ WRITE");
         if ($synctype eq 'swap' or $synctype eq 'pushdelta') {
-            $sourcedbh->do("SET TRANSACTION ISOLATION LEVEL $sync->{txnmode} READ WRITE");
+            $sourcedbh->do("SET TRANSACTION ISOLATION LEVEL SERIALIZABLE READ WRITE");
         }
 
         ## We may want to lock all the tables
index 84648a51b2cdc169dec0e1d0c7855fc7ccd4f9e6..0dc314d39eeadaab4c2f23eb8ddb28d8cae56fbc 100644 (file)
@@ -417,7 +417,6 @@ CREATE TABLE bucardo.sync (
   target_makedelta   ONOFF       NOT NULL DEFAULT 'inherits',
   rebuild_index      SMALLINT    NOT NULL DEFAULT 0,     -- Load without indexes and then REINDEX table
   priority           SMALLINT    NOT NULL DEFAULT 0,     -- Higher is better
-  txnmode            TEXT        NOT NULL DEFAULT 'SERIALIZABLE',
   analyze_after_copy BOOLEAN     NOT NULL DEFAULT 'true',
   strict_checking    BOOLEAN     NOT NULL DEFAULT 'true',
   overdue            INTERVAL    NOT NULL DEFAULT '0 seconds'::interval,