aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2024-04-03 02:55:03 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2024-04-03 02:55:03 +0300
commit2c91e13013414cf77bb8026a19a926e08f4e9e7a (patch)
tree556245a3bd017ff15d96e367655e03e47d8fe7c1 /src
parent3b1a7eb28930e9835cda5e42256b7ccc2d044d41 (diff)
downloadpostgresql-2c91e13013414cf77bb8026a19a926e08f4e9e7a.tar.gz
postgresql-2c91e13013414cf77bb8026a19a926e08f4e9e7a.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/storage/ipc/ipci.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/backend/storage/ipc/ipci.c b/src/backend/storage/ipc/ipci.c
index 5aed90c9355..90c84fec27a 100644
--- a/src/backend/storage/ipc/ipci.c
+++ b/src/backend/storage/ipc/ipci.c
@@ -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();
}
/*