Duh. Should be < 0, not 1. Thanks David.
authorGreg Sabino Mullane <greg@endpoint.com>
Sat, 3 Nov 2012 23:33:02 +0000 (19:33 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Sat, 3 Nov 2012 23:33:02 +0000 (19:33 -0400)
Bucardo.pm

index 4e778b543526a9b4afc020f7509475b3c4421c68..7f39ca63fc982f9b36dabb2ed58a55f600a899a9 100644 (file)
@@ -4582,7 +4582,7 @@ sub start_kid {
         if (first { $sync->{db}{$_}{dbh}->state eq '40001' }) {
             $sleeptime = $config{kid_serial_sleep};
             ## If set to -1, this means we never try again
-            if ($sleeptime < 1) {
+            if ($sleeptime < 0) {
                 $self->glog('Could not serialize, will not retry', LOG_VERBOSE);
                 $err_handler->($err);
             }
@@ -4598,7 +4598,7 @@ sub start_kid {
         elsif (first { $sync->{db}{$_}{dbh}->state eq '40P01' }) {
             $sleeptime = $config{kid_deadlock_sleep};
             ## If set to -1, this means we never try again
-            if ($sleeptime < 1) {
+            if ($sleeptime < 0) {
                 $self->glog('Encountered a deadlock, will not retry', LOG_VERBOSE);
                 $err_handler->($err);
             }