Prevent autovivification of an important hash.
authorGreg Sabino Mullane <greg@endpoint.com>
Mon, 9 Jun 2014 11:51:34 +0000 (07:51 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Mon, 9 Jun 2014 11:51:34 +0000 (07:51 -0400)
This was causing too many updates to the trigger tracking table.
Should clear up recurring serialization errors seen.

Bucardo.pm

index a074ac578c6f27c25dca484c9af9e010a14fb17d..adb24bffaff15c5e8328c3262a27ac803ce3a807 100644 (file)
@@ -8748,7 +8748,7 @@ sub delete_rows {
     my $newname = $goat->{newname}{$self->{syncname}};
 
     ## Are we truncating?
-    if (exists $self->{truncateinfo}{$S}{$T}) {
+    if (exists $self->{truncateinfo} and exists $self->{truncateinfo}{$S}{$T}) {
 
         ## Try and truncate each target
         for my $t (@$deldb) {