diff options
author | Andres Freund <andres@anarazel.de> | 2023-01-18 12:15:05 -0800 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2023-01-18 12:15:05 -0800 |
commit | 12605414a7d63ccbe36de2b530847bdfc9cf7447 (patch) | |
tree | 286433bb07e4743bfaf09d1b1309fa89267ec708 /src/backend/storage/lmgr/proc.c | |
parent | 5764f611e10b126e09e37fdffbe884c44643a6ce (diff) |
Use dlists instead of SHM_QUEUE for syncrep queue
Part of a series to remove SHM_QUEUE. ilist.h style lists are more widely used
and have an easier to use interface.
Reviewed-by: Thomas Munro <thomas.munro@gmail.com> (in an older version)
Discussion: https://postgr.es/m/20221120055930.t6kl3tyivzhlrzu2@awork3.anarazel.de
Discussion: https://postgr.es/m/20200211042229.msv23badgqljrdg2@alap3.anarazel.de
Diffstat (limited to 'src/backend/storage/lmgr/proc.c')
-rw-r--r-- | src/backend/storage/lmgr/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index e2adf493ca9..f8ac4edd6ff 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -410,7 +410,7 @@ InitProcess(void) /* Initialize fields for sync rep */ MyProc->waitLSN = 0; MyProc->syncRepState = SYNC_REP_NOT_WAITING; - SHMQueueElemInit(&(MyProc->syncRepLinks)); + dlist_node_init(&MyProc->syncRepLinks); /* Initialize fields for group XID clearing. */ MyProc->procArrayGroupMember = false; |