Skip to content

Commit c676ac0

Browse files
committed
test_shm_mq: Use Size rather than uint64.
Commit 3bd261c updated the API but neglected to make the corresponding edits here. Per Tom Lane and the buildfarm.
1 parent 49c0864 commit c676ac0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

contrib/test_shm_mq/test.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ void _PG_init(void);
2626
Datum test_shm_mq(PG_FUNCTION_ARGS);
2727
Datum test_shm_mq_pipelined(PG_FUNCTION_ARGS);
2828

29-
static void verify_message(uint64 origlen, char *origdata, uint64 newlen,
29+
static void verify_message(Size origlen, char *origdata, Size newlen,
3030
char *newdata);
3131

3232
/*
@@ -50,7 +50,7 @@ test_shm_mq(PG_FUNCTION_ARGS)
5050
shm_mq_handle *outqh;
5151
shm_mq_handle *inqh;
5252
shm_mq_result res;
53-
uint64 len;
53+
Size len;
5454
void *data;
5555

5656
/* A negative loopcount is nonsensical. */
@@ -142,7 +142,7 @@ test_shm_mq_pipelined(PG_FUNCTION_ARGS)
142142
shm_mq_handle *outqh;
143143
shm_mq_handle *inqh;
144144
shm_mq_result res;
145-
uint64 len;
145+
Size len;
146146
void *data;
147147

148148
/* A negative loopcount is nonsensical. */
@@ -247,9 +247,9 @@ test_shm_mq_pipelined(PG_FUNCTION_ARGS)
247247
* Verify that two messages are the same.
248248
*/
249249
static void
250-
verify_message(uint64 origlen, char *origdata, uint64 newlen, char *newdata)
250+
verify_message(Size origlen, char *origdata, Size newlen, char *newdata)
251251
{
252-
uint64 i;
252+
Size i;
253253

254254
if (origlen != newlen)
255255
ereport(ERROR,

contrib/test_shm_mq/worker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ attach_to_queues(dsm_segment *seg, shm_toc *toc, int myworkernumber,
180180
static void
181181
copy_messages(shm_mq_handle *inqh, shm_mq_handle *outqh)
182182
{
183-
uint64 len;
183+
Size len;
184184
void *data;
185185
shm_mq_result res;
186186

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy