]> granicus.if.org Git - postgresql/commitdiff
test_shm_mq: Use Size rather than uint64.
authorRobert Haas <rhaas@postgresql.org>
Tue, 18 Mar 2014 17:30:19 +0000 (13:30 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 18 Mar 2014 17:30:19 +0000 (13:30 -0400)
Commit 3bd261ca18c67eafe18088e58fab511e3b965418 updated the API but
neglected to make the corresponding edits here.

Per Tom Lane and the buildfarm.

contrib/test_shm_mq/test.c
contrib/test_shm_mq/worker.c

index 59f18ec1a1e04e763caf54f9df1fd51e53a0cd24..dba5e692e4db21d8647230e638af38f7a0989f98 100644 (file)
@@ -26,7 +26,7 @@ void          _PG_init(void);
 Datum          test_shm_mq(PG_FUNCTION_ARGS);
 Datum          test_shm_mq_pipelined(PG_FUNCTION_ARGS);
 
-static void verify_message(uint64 origlen, char *origdata, uint64 newlen,
+static void verify_message(Size origlen, char *origdata, Size newlen,
                           char *newdata);
 
 /*
@@ -50,7 +50,7 @@ test_shm_mq(PG_FUNCTION_ARGS)
        shm_mq_handle *outqh;
        shm_mq_handle *inqh;
        shm_mq_result   res;
-       uint64          len;
+       Size            len;
        void       *data;
 
        /* A negative loopcount is nonsensical. */
@@ -142,7 +142,7 @@ test_shm_mq_pipelined(PG_FUNCTION_ARGS)
        shm_mq_handle *outqh;
        shm_mq_handle *inqh;
        shm_mq_result   res;
-       uint64          len;
+       Size            len;
        void       *data;
 
        /* A negative loopcount is nonsensical. */
@@ -247,9 +247,9 @@ test_shm_mq_pipelined(PG_FUNCTION_ARGS)
  * Verify that two messages are the same.
  */
 static void
-verify_message(uint64 origlen, char *origdata, uint64 newlen, char *newdata)
+verify_message(Size origlen, char *origdata, Size newlen, char *newdata)
 {
-       uint64  i;
+       Size    i;
 
        if (origlen != newlen)
                ereport(ERROR,
index 0322aafa37e91dd4170843032cec6c763fa4c754..5627a57a3ecf15d4bd1bd966d4e28c03fa4aa59b 100644 (file)
@@ -180,7 +180,7 @@ attach_to_queues(dsm_segment *seg, shm_toc *toc, int myworkernumber,
 static void
 copy_messages(shm_mq_handle *inqh, shm_mq_handle *outqh)
 {
-       uint64          len;
+       Size            len;
        void       *data;
        shm_mq_result res;