Wed Feb 28 14:08:34 PST 2007
- Previous message: [Slony1-commit] slony1-engine RELEASE-1.2.7
- Next message: [Slony1-commit] slony1-engine/src/slon remote_worker.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-engine/src/slon
In directory main:/tmp/cvs-serv3829/src/slon
Modified Files:
Tag: REL_1_2_STABLE
remote_worker.c
Log Message:
- When you run MOVE SET, this populates sl_setsync for the moved set
even on nodes that are not subscribed. If, subsequent to doing this,
you attempt a SUBSCRIBE SET for a formerly-unsubscribed node, the
subscription will fail right at the end when the slon tries to insert a
new value to sl_setsync.
The fix: DELETE from sl_setsync immediately before the INSERT. This
will silently blow away any 'offending' sl_setsync row.
As observed by Afilias staff...
Index: remote_worker.c
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/slon/remote_worker.c,v
retrieving revision 1.124.2.10
retrieving revision 1.124.2.11
diff -C2 -d -r1.124.2.10 -r1.124.2.11
*** remote_worker.c 8 Feb 2007 18:42:38 -0000 1.124.2.10
--- remote_worker.c 28 Feb 2007 22:08:32 -0000 1.124.2.11
***************
*** 3865,3875 ****
*/
slon_mkquery(&query1,
! "insert into %s.sl_setsync "
! " (ssy_setid, ssy_origin, ssy_seqno, "
! " ssy_minxid, ssy_maxxid, ssy_xip, ssy_action_list) "
" values ('%d', '%d', '%s', '%s', '%s', '%q', '%q'); ",
! rtcfg_namespace,
! set_id, node->no_id, ssy_seqno, ssy_minxid, ssy_maxxid, ssy_xip,
! dstring_data(&ssy_action_list));
PQclear(res1);
dstring_free(&ssy_action_list);
--- 3865,3877 ----
*/
slon_mkquery(&query1,
! "delete from %s.sl_setsync where ssy_setid = %d;"
! "insert into %s.sl_setsync "
! " (ssy_setid, ssy_origin, ssy_seqno, "
! " ssy_minxid, ssy_maxxid, ssy_xip, ssy_action_list) "
" values ('%d', '%d', '%s', '%s', '%s', '%q', '%q'); ",
! rtcfg_namespace, set_id,
! rtcfg_namespace,
! set_id, node->no_id, ssy_seqno, ssy_minxid, ssy_maxxid, ssy_xip,
! dstring_data(&ssy_action_list));
PQclear(res1);
dstring_free(&ssy_action_list);
- Previous message: [Slony1-commit] slony1-engine RELEASE-1.2.7
- Next message: [Slony1-commit] slony1-engine/src/slon remote_worker.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list