From 77e6da26647004b7118c5d7f574b1bfecc19f380 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 11 Dec 2012 01:55:35 -0500 Subject: [PATCH] Better makedelta work: this should allow things to work mostly as intended now. --- Bucardo.pm | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Bucardo.pm b/Bucardo.pm index 7ee65af9a..6aabdef55 100644 --- a/Bucardo.pm +++ b/Bucardo.pm @@ -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; } -- 2.39.5