Troy Wolf troy at troywolf.com
Thu Jun 26 06:26:56 PDT 2008
Alexander, I don't know if this is the missing magic, but compare your
code to the the code Chris Browne posted:

On Wed, Jun 25, 2008 at 2:20 PM, Alexander Staubo <alex at bengler.no> wrote:
>> SUBSCRIBE SET (ID=1, PROVIDER=1, RECEIVER=2);
>> WAIT FOR EVENT (ORIGIN=2, CONFIRMED = 1);
>> SYNC(ID = 1);
>> WAIT FOR EVENT (ORIGIN=1, CONFIRMED=2);

Chris Browne:
subscribe set (id=1, provider=1, receiver=2, forward=yes);
sync(id=1);    # Submits a SYNC event
wait for event (origin=all, confirmed=2, wait on=1);   # Waits for
that event to be confirmed on node #2

First notice that the WAIT FOR EVENT after the SUBSCRIBE is useless.
It tells you nothing. Second, notice the "origin=all" and "wait on=1"
in the WAIT FOR EVENT after the SYNC. Perhaps these are important
ingredients?


More information about the Slony1-general mailing list