Skip to content

Commit 2c91e13

Browse files
committed
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
1 parent 3b1a7eb commit 2c91e13

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/backend/storage/ipc/ipci.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,6 @@ CreateSharedMemoryAndSemaphores(void)
246246
/* Initialize subsystems */
247247
CreateOrAttachShmemStructs();
248248

249-
/*
250-
* Init array of Latches in shared memory for wait lsn
251-
*/
252-
WaitLSNShmemInit();
253-
254249
#ifdef EXEC_BACKEND
255250

256251
/*
@@ -364,6 +359,7 @@ CreateOrAttachShmemStructs(void)
364359
StatsShmemInit();
365360
WaitEventExtensionShmemInit();
366361
InjectionPointShmemInit();
362+
WaitLSNShmemInit();
367363
}
368364

369365
/*

0 commit comments

Comments
 (0)