summaryrefslogtreecommitdiff
path: root/src/include/replication
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2023-01-18 12:15:05 -0800
committerAndres Freund <andres@anarazel.de>2023-01-18 12:15:05 -0800
commit12605414a7d63ccbe36de2b530847bdfc9cf7447 (patch)
tree286433bb07e4743bfaf09d1b1309fa89267ec708 /src/include/replication
parent5764f611e10b126e09e37fdffbe884c44643a6ce (diff)
downloadpostgresql-12605414a7d63ccbe36de2b530847bdfc9cf7447.tar.gz
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/include/replication')
-rw-r--r--src/include/replication/walsender_private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/replication/walsender_private.h b/src/include/replication/walsender_private.h
index e5e779aeb7..5310e054c4 100644
--- a/src/include/replication/walsender_private.h
+++ b/src/include/replication/walsender_private.h
@@ -13,6 +13,7 @@
#define _WALSENDER_PRIVATE_H
#include "access/xlog.h"
+#include "lib/ilist.h"
#include "nodes/nodes.h"
#include "replication/syncrep.h"
#include "storage/latch.h"
@@ -89,7 +90,7 @@ typedef struct
* Synchronous replication queue with one queue per request type.
* Protected by SyncRepLock.
*/
- SHM_QUEUE SyncRepQueue[NUM_SYNC_REP_WAIT_MODE];
+ dlist_head SyncRepQueue[NUM_SYNC_REP_WAIT_MODE];
/*
* Current location of the head of the queue. All waiters should have a