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

Commitd137cb5

Browse files
committed
Remove SHM_QUEUE
Prior patches got rid of all the uses of SHM_QUEUE. ilist.h style lists aremore widely used and have an easier to use interface. As there are no usersleft, remove SHM_QUEUE.Reviewed-by: Thomas Munro <thomas.munro@gmail.com> (in an older version)Discussion:https://postgr.es/m/20221120055930.t6kl3tyivzhlrzu2@awork3.anarazel.deDiscussion:https://postgr.es/m/20200211042229.msv23badgqljrdg2@alap3.anarazel.de
1 parent9600371 commitd137cb5

File tree

5 files changed

+0
-215
lines changed

5 files changed

+0
-215
lines changed

‎src/backend/storage/ipc/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ OBJS = \
2121
shm_mq.o\
2222
shm_toc.o\
2323
shmem.o\
24-
shmqueue.o\
2524
signalfuncs.o\
2625
sinval.o\
2726
sinvaladt.o\

‎src/backend/storage/ipc/meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ backend_sources += files(
1313
'shm_mq.c',
1414
'shm_toc.c',
1515
'shmem.c',
16-
'shmqueue.c',
1716
'signalfuncs.c',
1817
'sinval.c',
1918
'sinvaladt.c',

‎src/backend/storage/ipc/shmqueue.c

Lines changed: 0 additions & 190 deletions
This file was deleted.

‎src/include/storage/shmem.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@
2424
#include"utils/hsearch.h"
2525

2626

27-
/* shmqueue.c */
28-
typedefstructSHM_QUEUE
29-
{
30-
structSHM_QUEUE*prev;
31-
structSHM_QUEUE*next;
32-
}SHM_QUEUE;
33-
3427
/* shmem.c */
3528
externvoidInitShmemAccess(void*seghdr);
3629
externvoidInitShmemAllocation(void);
@@ -63,19 +56,4 @@ typedef struct
6356
Sizeallocated_size;/* # bytes actually allocated */
6457
}ShmemIndexEnt;
6558

66-
/*
67-
* prototypes for functions in shmqueue.c
68-
*/
69-
externvoidSHMQueueInit(SHM_QUEUE*queue);
70-
externvoidSHMQueueElemInit(SHM_QUEUE*queue);
71-
externvoidSHMQueueDelete(SHM_QUEUE*queue);
72-
externvoidSHMQueueInsertBefore(SHM_QUEUE*queue,SHM_QUEUE*elem);
73-
externvoidSHMQueueInsertAfter(SHM_QUEUE*queue,SHM_QUEUE*elem);
74-
externPointerSHMQueueNext(constSHM_QUEUE*queue,constSHM_QUEUE*curElem,
75-
SizelinkOffset);
76-
externPointerSHMQueuePrev(constSHM_QUEUE*queue,constSHM_QUEUE*curElem,
77-
SizelinkOffset);
78-
externboolSHMQueueEmpty(constSHM_QUEUE*queue);
79-
externboolSHMQueueIsDetached(constSHM_QUEUE*queue);
80-
8159
#endif/* SHMEM_H */

‎src/tools/pgindent/typedefs.list

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2377,7 +2377,6 @@ SERIALIZABLEXIDTAG
23772377
SERVICE_STATUS
23782378
SERVICE_STATUS_HANDLE
23792379
SERVICE_TABLE_ENTRY
2380-
SHM_QUEUE
23812380
SID_AND_ATTRIBUTES
23822381
SID_IDENTIFIER_AUTHORITY
23832382
SID_NAME_USE

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp