mirror of
https://github.com/postgres/postgres.git
synced 2025-05-17 06:41:24 +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:
parent
3b1a7eb289
commit
2c91e13013
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user