CVS User Account cvsuser
Wed Feb 16 22:18:37 PST 2005
Log Message:
-----------
Add a missing WHERE clause that causes MOVE SET to fail when:

1. There are three or more nodes
2. Sets originate on at least two nodes
3. A set is being moved from a third node to one of the first two.

Modified Files:
--------------
    slony1-engine/src/backend:
        slony1_funcs.sql (r1.53 -> r1.54)

-------------- next part --------------
Index: slony1_funcs.sql
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/backend/slony1_funcs.sql,v
retrieving revision 1.53
retrieving revision 1.54
diff -Lsrc/backend/slony1_funcs.sql -Lsrc/backend/slony1_funcs.sql -u -w -r1.53 -r1.54
--- src/backend/slony1_funcs.sql
+++ src/backend/slony1_funcs.sql
@@ -1883,7 +1883,8 @@
 	v_sub_last = p_new_origin;
 	select sub_provider into v_sub_node
 			from @NAMESPACE at .sl_subscribe
-			where sub_receiver = p_new_origin;
+			where sub_set = p_set_id
+			and sub_receiver = p_new_origin;
 	if not found then
 		raise exception ''Slony-I: subscription path broken in moveSet_int'';
 	end if;


More information about the Slony1-commit mailing list