Move WaitLSNShmemInit() to CreateOrAttachShmemStructs()

Thanks to Andres Freund, Thomas Munrom and David Rowley for investigating
this issue.

Discussion: https://postgr.es/m/CAPpHfdvap5mMLikt8CUjA0osAvCJHT0qnYeR3f84EJ_Kvse0mg%40mail.gmail.com
This commit is contained in:
Alexander Korotkov 2024-04-03 02:55:03 +03:00
parent 3b1a7eb289
commit 2c91e13013
1 changed files with 1 additions and 5 deletions

View File

@ -246,11 +246,6 @@ CreateSharedMemoryAndSemaphores(void)
/* Initialize subsystems */
CreateOrAttachShmemStructs();
/*
* Init array of Latches in shared memory for wait lsn
*/
WaitLSNShmemInit();
#ifdef EXEC_BACKEND
/*
@ -364,6 +359,7 @@ CreateOrAttachShmemStructs(void)
StatsShmemInit();
WaitEventExtensionShmemInit();
InjectionPointShmemInit();
WaitLSNShmemInit();
}
/*