Skip the not-working-now track_rates section.
authorGreg Sabino Mullane <greg@endpoint.com>
Tue, 15 Oct 2013 00:55:05 +0000 (20:55 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Tue, 15 Oct 2013 00:55:05 +0000 (20:55 -0400)
Bucardo.pm

index c4fe442b36744b42883ce61ac48da9289db535ad..81946fe5c76ca6b4226963fc8fb5528e657d08bd 100644 (file)
@@ -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