Skip to content

Commit 3eec0e6

Browse files
Fix comment for MAX_SIMUL_LWLOCKS.
This comment mentions that pg_buffercache locks all buffer partitions simultaneously, but it hasn't done so since v10. Oversight in commit 6e65454. Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/aKTuAHVEuYCUmmIy%40nathan
1 parent eab9e4e commit 3eec0e6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/storage/lmgr/lwlock.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ LWLockPadded *MainLWLockArray = NULL;
162162
/*
163163
* We use this structure to keep track of locked LWLocks for release
164164
* during error recovery. Normally, only a few will be held at once, but
165-
* occasionally the number can be much higher; for example, the pg_buffercache
166-
* extension locks all buffer partitions simultaneously.
165+
* occasionally the number can be much higher.
167166
*/
168167
#define MAX_SIMUL_LWLOCKS 200
169168

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy