[Bucardo-general] Bucardo version 4.4.6 on Centos 4.7, Postgres 9.0.2 appears to be broken working on a very large bucardo_delta file.

Greg Sabino Mullane greg at endpoint.com
Tue Nov 8 16:09:36 UTC 2011


I think I found the problem. Here's the quick fix for 
Bucardo.pm version 4.4.6:

diff -u -r1.1 Bucardo.pm
--- Bucardo.pm	2011/11/08 16:07:28		1.1
+++ Bucardo.pm	2011/11/08 16:07:38
@@ -5500,7 +5500,7 @@
                     else {
                         $x=0;
                         for my $pk (@{$info1->{$pkval}{BUCARDO_PKVALS}}) {
-                            if ($g->{pkeytype}[0] =~ /int\d?$/o) {
+                            if ($g->{pkeytype}[$x] =~ /int\d?$/o) {
                                 push @safepk => $pk;
                             }
                             else {
@@ -5508,6 +5508,7 @@
                                 $safepkval =~ s{\\}{\\\\}go;
                                 push @safepk => qq{'$safepkval'};
                             }
+																		$x++;
                         }
                     }
 

We'll get a new version rolled out shortly, but let us know if that 
fix works for you first.

-- 
Greg Sabino Mullane greg at endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
Url : https://mail.endcrypt.com/pipermail/bucardo-general/attachments/20111108/7088647b/attachment.bin 


More information about the Bucardo-general mailing list