We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b472c79 commit 24cbdfaCopy full SHA for 24cbdfa
1 file changed
pg_wait_sampling.c
@@ -260,6 +260,8 @@ pgws_shmem_startup(void)
260
void *pgws;
261
shm_toc *toc;
262
263
+ LWLockAcquire(AddinShmemInitLock, LW_EXCLUSIVE);
264
+
265
pgws = ShmemInitStruct("pg_wait_sampling", segsize, &found);
266
267
if (!found)
@@ -290,6 +292,8 @@ pgws_shmem_startup(void)
290
292
291
293
shmem_initialized = true;
294
295
+ LWLockRelease(AddinShmemInitLock);
296
297
if (prev_shmem_startup_hook)
298
prev_shmem_startup_hook();
299
}
0 commit comments