From aa34038a52d36e9f45076cb1126002241246c549 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Fri, 8 Nov 2013 14:41:35 -0500 Subject: [PATCH] We don't need to check database wide when we already check database/table combo anyway. --- Bucardo.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Bucardo.pm b/Bucardo.pm index e7bf46187..6aa16389d 100644 --- a/Bucardo.pm +++ b/Bucardo.pm @@ -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; -- 2.39.5