Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc676ac0

Browse files
committed
test_shm_mq: Use Size rather than uint64.
Commit3bd261c updated the API butneglected to make the corresponding edits here.Per Tom Lane and the buildfarm.
1 parent49c0864 commitc676ac0

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
Datumtest_shm_mq(PG_FUNCTION_ARGS);
2727
Datumtest_shm_mq_pipelined(PG_FUNCTION_ARGS);
2828

29-
staticvoidverify_message(uint64origlen,char*origdata,uint64newlen,
29+
staticvoidverify_message(Sizeoriglen,char*origdata,Sizenewlen,
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_resultres;
53-
uint64len;
53+
Sizelen;
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_resultres;
145-
uint64len;
145+
Sizelen;
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
staticvoid
250-
verify_message(uint64origlen,char*origdata,uint64newlen,char*newdata)
250+
verify_message(Sizeoriglen,char*origdata,Sizenewlen,char*newdata)
251251
{
252-
uint64i;
252+
Sizei;
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
staticvoid
181181
copy_messages(shm_mq_handle*inqh,shm_mq_handle*outqh)
182182
{
183-
uint64len;
183+
Sizelen;
184184
void*data;
185185
shm_mq_resultres;
186186

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp