CVS User Account cvsuser
Wed May 31 13:09:54 PDT 2006
Log Message:
-----------
Fix to poll_cluster query (in NG test suite)...

The query was looking for what XIDs are after the latest applied
event.  It would fail if multiple events had the very same timestamp,
as happens when SUBSCRIBE_SET/ENABLE_SUBSCRIPTION are processed.

Changed the query to do "limit 1"; voiks betta...

Modified Files:
--------------
    slony1-engine/tests:
        poll_cluster.sh (r1.2 -> r1.3)

-------------- next part --------------
Index: poll_cluster.sh
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/tests/poll_cluster.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -Ltests/poll_cluster.sh -Ltests/poll_cluster.sh -u -w -r1.2 -r1.3
--- tests/poll_cluster.sh
+++ tests/poll_cluster.sh
@@ -33,7 +33,7 @@
 
 if [ -n "${cluster}" ]; then
   sleep 15
-  SQL="SELECT count(l.*) FROM \"_${cluster}\".sl_log_1 l WHERE l.log_xid > (SELECT ev_maxxid FROM \"_${cluster}\".sl_event WHERE ev_timestamp = (SELECT max(ev_timestamp) FROM \"_${cluster}\".sl_event))"
+  SQL="SELECT count(l.*) FROM \"_${cluster}\".sl_log_1 l WHERE l.log_xid > (SELECT ev_maxxid FROM \"_${cluster}\".sl_event WHERE ev_timestamp = (SELECT max(ev_timestamp) FROM \"_${cluster}\".sl_event) limit 1)"
   SQL2="SELECT max(st_lag_num_events) FROM \"_${cluster}\".sl_status"
   while : ; do
     lag=`${pgbindir}/psql -q -A -t -c "${SQL}" ${conninfo} 2>>$mktmp/poll.log | sed -e '/^$/d'`



More information about the Slony1-commit mailing list