Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+5-5
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

+1-1
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)