CVS User Account cvsuser
Wed Oct 26 22:48:39 PDT 2005
Log Message:
-----------
The query looking at copyFields() return codes was looking at the wrong
result variable (res2, rather than res3).  Fixed.

Modified Files:
--------------
    slony1-engine/src/slon:
        remote_worker.c (r1.91 -> r1.92)

-------------- next part --------------
Index: remote_worker.c
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slon/remote_worker.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -Lsrc/slon/remote_worker.c -Lsrc/slon/remote_worker.c -u -w -r1.91 -r1.92
--- src/slon/remote_worker.c
+++ src/slon/remote_worker.c
@@ -2938,7 +2938,7 @@
 
 		res3 = PQexec(pro_dbconn, dstring_data(&query2));
 
-		if (PQresultStatus(res2) != PGRES_TUPLES_OK) {
+		if (PQresultStatus(res3) != PGRES_TUPLES_OK) {
 			slon_log(SLON_ERROR, "remoteWorkerThread_%d: \"%s\" %s\n",
 				 node->no_id, dstring_data(&query2),
 				 PQresultErrorMessage(res3));


More information about the Slony1-commit mailing list