mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user