Wed Jun 8 06:16:25 PDT 2011
- Previous message: [Slony1-general] Lock set doesn't generate event in 2.0.6?
- Next message: [Slony1-general] Lock set doesn't generate event in 2.0.6?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 11-06-08 07:05 AM, Glyn Astill wrote: > Hi Guys, > > Last week we upgraded from 1.2.22 to 2.0.6 and today I'm trying to move > a set from one node to another. I'm using my own set of scripts that > I've been using for years with 1.2.22, however when I wait for event > after lock set I get the message "Error: script did not generate any > event on node 1" > > Below is the script I'm running: > > ECHO 'ATTEMPT: Lock the set and wait for the lock:'; > LOCK SET ( ID = 1, ORIGIN = 1); > ECHO 'ATTEMPT: Waiting for confirm on all nodes:'; > WAIT FOR EVENT (ORIGIN = 1, CONFIRMED = ALL, WAIT ON = 1, TIMEOUT = 0); > > I know we now can't run wait for event in a try block, but what's > changed and what am I doing wrong here? lock set does not generate an event in either 1.2.22 or 2.0.6 What has changed between them is that if you 'wait for event' in 1.2 when no event then the 'wait for event' command is treated like a no-op, it continues without waiting. In 2.0 the 'wait for event' command generates an error if you try to wait for an event that does not exist. > > > Thanks > Glyn > > > > _______________________________________________ > Slony1-general mailing list > Slony1-general at lists.slony.info > http://lists.slony.info/mailman/listinfo/slony1-general
- Previous message: [Slony1-general] Lock set doesn't generate event in 2.0.6?
- Next message: [Slony1-general] Lock set doesn't generate event in 2.0.6?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-general mailing list