bugzilla-daemon at main.slony.info bugzilla-daemon at main.slony.info
Fri Nov 27 21:59:27 PST 2015
http://www.slony.info/bugzilla/show_bug.cgi?id=363

           Summary: Buggy slony script example in Switchover docs
           Product: Slony-I
           Version: devel
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: low
         Component: docs
        AssignedTo: slony1-bugs at lists.slony.info
        ReportedBy: josh at agliodbs.com
                CC: slony1-bugs at lists.slony.info
   Estimated Hours: 0.0


3.4.2, the documentation on how to perform a controlled switchover, has this
sample script:

lock set (id = 1, origin = 1);
wait for event (origin = 1, confirmed = 2);
move set (id = 1, old origin = 1, new origin = 2);
wait for event (origin = 1, confirmed = 2, wait on=1);

This script is buggy and will not run on 2.1 or 2.2.  It needs to be this:

lock set (id = 1, origin = 1);
wait for event (origin = 1, confirmed = 2, wait on = 1);
move set (id = 1, old origin = 1, new origin = 2);
wait for event (origin = 1, confirmed = 2, wait on=1);

-- 
Configure bugmail: http://www.slony.info/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Slony1-bugs mailing list