We don't need to check database wide when we already check database/table combo anyway.
authorGreg Sabino Mullane <greg@endpoint.com>
Fri, 8 Nov 2013 19:41:35 +0000 (14:41 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Fri, 8 Nov 2013 19:41:35 +0000 (14:41 -0500)
Bucardo.pm

index e7bf4618791e5dc900d1922401bb956e4e47552b..6aa16389d17d72a476b3da0969150ee628cc302c 100644 (file)
@@ -3175,10 +3175,9 @@ sub start_kid {
 
                     $x = $sync->{db}{$dbname};
 
-                    ## No need to grab information if we know there are no deltas in this database,
-                    ## or for just this database/table combination
+                    ## No need to grab information if we know there are no deltas for this table
                     if ($config{quick_delta_check}) {
-                        next if ! $x->{deltatotal} or ! $x->{deltaquick}{"$S.$T"};
+                        next if ! $x->{deltaquick}{"$S.$T"};
                     }
 
                     ## Gets all relevant rows from bucardo_deltas: runs asynchronously
@@ -3197,7 +3196,7 @@ sub start_kid {
 
                     ## If we skipped this, set the deltacount to zero and move on
                     if ($config{quick_delta_check}) {
-                        if (! $x->{deltatotal} or ! $x->{deltaquick}{"$S.$T"}) {
+                        if (! $x->{deltaquick}{"$S.$T"}) {
                             $self->glog("Skipping $S.$T: no delta rows", LOG_DEBUG);
                             $deltacount{dbtable}{$dbname}{$S}{$T} = 0;
                             next;