From: Greg Sabino Mullane Date: Tue, 15 Oct 2013 00:55:05 +0000 (-0400) Subject: Skip the not-working-now track_rates section. X-Git-Tag: 4.99.8~8 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=79f6249c7a423ffc5aff46f3c70af3aab289f7c8;p=bucardo.git Skip the not-working-now track_rates section. --- diff --git a/Bucardo.pm b/Bucardo.pm index c4fe442b3..81946fe5c 100644 --- a/Bucardo.pm +++ b/Bucardo.pm @@ -4065,24 +4065,26 @@ sub start_kid { ## Gather up our rate information - just store for now, we can write it after the commits ## XX Redo with sourcename etc. - if ($deltacount{source}{$S}{$T} and $sync->{track_rates}) { - $self->glog('Gathering source rate information', LOG_VERBOSE); - my $sth = $sth{source}{$g}{deltarate}; - $count = $sth->execute(); - $g->{rateinfo}{source} = $sth->fetchall_arrayref(); - } - - for my $dbname (@dbs_source) { - - if ($deltacount{dbtable}{$dbname}{$S}{$T} and $sync->{track_rates}) { - $self->glog('Gathering target rate information', LOG_VERBOSE); - my $sth = $sth{target}{$g}{deltarate}; + ## Skip as {deltarate} is not even defined! + if (0) { + if ($deltacount{source}{$S}{$T} and $sync->{track_rates}) { + $self->glog('Gathering source rate information', LOG_VERBOSE); + my $sth = $sth{source}{$g}{deltarate}; $count = $sth->execute(); - $g->{rateinfo}{target} = $sth->fetchall_arrayref(); + $g->{rateinfo}{source} = $sth->fetchall_arrayref(); } - } + for my $dbname (@dbs_source) { + + if ($deltacount{dbtable}{$dbname}{$S}{$T} and $sync->{track_rates}) { + $self->glog('Gathering target rate information', LOG_VERBOSE); + my $sth = $sth{target}{$g}{deltarate}; + $count = $sth->execute(); + $g->{rateinfo}{target} = $sth->fetchall_arrayref(); + } + } + } ## For each database that had delta changes, insert rows to bucardo_track ## We also need to consider makedelta: ## For all tables that are marked as makedelta, we need to ensure