mirror of
https://github.com/postgres/postgres.git
synced 2025-10-29 22:49:41 +03:00
Use ProcNumbers instead of direct Latch pointers to address other procs
This is in preparation for replacing Latches with a new abstraction. That's still work in progress, but this seems a little tidier anyway, so let's get this refactoring out of the way already. Discussion: https://www.postgresql.org/message-id/391abe21-413e-4d91-a650-b663af49500c%40iki.fi
This commit is contained in:
@@ -194,8 +194,8 @@ InitProcGlobal(void)
|
||||
dlist_init(&ProcGlobal->bgworkerFreeProcs);
|
||||
dlist_init(&ProcGlobal->walsenderFreeProcs);
|
||||
ProcGlobal->startupBufferPinWaitBufId = -1;
|
||||
ProcGlobal->walwriterLatch = NULL;
|
||||
ProcGlobal->checkpointerLatch = NULL;
|
||||
ProcGlobal->walwriterProc = INVALID_PROC_NUMBER;
|
||||
ProcGlobal->checkpointerProc = INVALID_PROC_NUMBER;
|
||||
pg_atomic_init_u32(&ProcGlobal->procArrayGroupFirst, INVALID_PROC_NUMBER);
|
||||
pg_atomic_init_u32(&ProcGlobal->clogGroupFirst, INVALID_PROC_NUMBER);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user