Better makedelta work: this should allow things to work mostly as intended now.
authorGreg Sabino Mullane <greg@endpoint.com>
Tue, 11 Dec 2012 06:55:35 +0000 (01:55 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Tue, 11 Dec 2012 06:55:35 +0000 (01:55 -0500)
Bucardo.pm

index 7ee65af9ae3b23867721b6006ee1799f4d91f888..6aabdef555beb82120f004f9a16886508913efa9 100644 (file)
@@ -2442,13 +2442,7 @@ sub start_kid {
                     $sth{stage}{$dbname}{$g} = $x->{dbh}->prepare($SQL, {pg_async => PG_ASYNC});
 
                     ## Set the per database/per table makedelta setting now
-                    ## XXX Make this work on a per-database level too
-                    ## Ideas:
-                    ## 1. Just use db.makedelta
-                    ## 2. Use a mapping table
-                    ## 3. Have goat.makedelta name the tables
-                    ## 3a. Allow intra-sync introspection etc. for automatic updating
-                    if ($g->{makedelta} eq 'on') {
+                    if ($g->{makedelta} eq 'on' or $g->{makedelta} =~ /\b$dbname\b/) {
                         $x->{is_makedelta}{$S}{$T} = 1;
                     }