CVS User Account cvsuser
Fri Aug 4 14:32:59 PDT 2006
Log Message:
-----------
Apply #ifndefs to hide function that is only used if other code
isn't hidden by HAVE_PQPUTCOPYDATA.

Ultimately, all this code can go away, as this was to allow
compatibility with PG 7.3, which is no longer a supported platform.

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

-------------- next part --------------
Index: remote_worker.c
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slon/remote_worker.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -Lsrc/slon/remote_worker.c -Lsrc/slon/remote_worker.c -u -w -r1.119 -r1.120
--- src/slon/remote_worker.c
+++ src/slon/remote_worker.c
@@ -263,7 +263,9 @@
 static int	generate_archive_header(int node_id, const char *seqbuf);
 static int	submit_query_to_archive(SlonDString * ds);
 static int	submit_string_to_archive(const char *s);
+#ifndef HAVE_PQPUTCOPYDATA
 static int	submit_raw_data_to_archive(const char *s);
+#endif
 static int logarchive_tracking(const char *namespace, int sub_set, const char *firstseq,
 					const char *seqbuf, const char *timestamp);
 static int	write_void_log(int node_id, char *seqbuf, const char *message);
@@ -5785,6 +5787,7 @@
 	return fprintf(archive_fp, "%s\n", s);
 }
 
+#ifndef HAVE_PQPUTCOPYDATA
 /* ----------
  * submit_raw_data_to_archive
  *
@@ -5796,6 +5799,7 @@
 {
 	return fprintf(archive_fp, "%s", s);
 }
+#endif
 
 /* ----------
  * terminate_log_archive



More information about the Slony1-commit mailing list