On Mon, Sep 02, 2013 at 03:06:35PM +0200, Christian Ritter wrote: > BUCARDO_ID | id | host_ip | prüfsumme > ------------+----+-------------+----------- > 1 | 1 | 192.168.1.1 | foobar > (1 row)
(Good debugging so far everyone!)
I would guess that the list of columns as returned from
fetchall_hashref does not match the list stored in $g->{cols}.
Certainly that would explain the behavior. I have not been able
to duplicate the problem on 4.5.0. Could you try adding these
lines to your Bucardo.pm and see what they spit out when you
add a new row to one side?:
diff --git a/Bucardo.pm b/Bucardo.pm
index b303fcd..7c72f61 100644
--- a/Bucardo.pm
+++ b/Bucardo.pm
@@ -5741,6 +5741,9 @@ sub start_kid {
my (@srcrow,@tgtrow);
if ($action & 1 or $action & 4) { ## source to target /
source to source
@srcrow = @{$info1->{$pkval}}{@{$g->{cols}}};
+ warn Dumper $info1;
+ warn Dumper $g->{cols};
+ warn Dumper \@srcrow;
}
if ($action & 2 or $action & 8) { ## target to source /
target to target
@tgtrow = @{$info2->{$pkval}}{@{$g->{cols}}};
--
Greg Sabino Mullane [email protected]
End Point Corporation
PGP Key: 0x14964AC8
signature.asc
Description: Digital signature
_______________________________________________ Bucardo-general mailing list [email protected] https://mail.endcrypt.com/mailman/listinfo/bucardo-general
