]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix outdated comment on MainLWLockArray
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 30 Mar 2026 14:13:11 +0000 (17:13 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 30 Mar 2026 14:13:11 +0000 (17:13 +0300)
It's no longer passed to child processes down via BackendParameters in
EXEC_BACKEND mode.

Reported-by: Sami Imseih <samimseih@gmail.com>
Discussion: https://www.postgresql.org/message-id/CAA5RZ0vPWNMvTBqyH7nqDRrHd6Y4Et5iNqXFuwpbsPOk3cL4rQ@mail.gmail.com

src/backend/storage/lmgr/lwlock.c

index f5b2a6d479dfc524a7d3306e7495a845ecead2a7..5cb696490d696e5a1213017bcb20528eb1da74eb 100644 (file)
@@ -145,11 +145,7 @@ StaticAssertDecl(lengthof(BuiltinTrancheNames) ==
                                 LWTRANCHE_FIRST_USER_DEFINED,
                                 "missing entries in BuiltinTrancheNames[]");
 
-/*
- * This points to the main array of LWLocks in shared memory.  Backends inherit
- * the pointer by fork from the postmaster (except in the EXEC_BACKEND case,
- * where we have special measures to pass it down).
- */
+/* Main array of LWLocks in shared memory */
 LWLockPadded *MainLWLockArray = NULL;
 
 /*