mirror of
https://github.com/postgres/postgres.git
synced 2025-08-22 21:53:06 +03:00
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:
@@ -246,11 +246,6 @@ CreateSharedMemoryAndSemaphores(void)
|
|||||||
/* Initialize subsystems */
|
/* Initialize subsystems */
|
||||||
CreateOrAttachShmemStructs();
|
CreateOrAttachShmemStructs();
|
||||||
|
|
||||||
/*
|
|
||||||
* Init array of Latches in shared memory for wait lsn
|
|
||||||
*/
|
|
||||||
WaitLSNShmemInit();
|
|
||||||
|
|
||||||
#ifdef EXEC_BACKEND
|
#ifdef EXEC_BACKEND
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -364,6 +359,7 @@ CreateOrAttachShmemStructs(void)
|
|||||||
StatsShmemInit();
|
StatsShmemInit();
|
||||||
WaitEventExtensionShmemInit();
|
WaitEventExtensionShmemInit();
|
||||||
InjectionPointShmemInit();
|
InjectionPointShmemInit();
|
||||||
|
WaitLSNShmemInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user