Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcbf6550

Browse files
committed
Fix the number of lwlocks needed by the "fast path" lock patch. It needs
one lock per backend or auxiliary process - the need for a lock for eachaux processes was not accounted for in NumLWLocks(). No-one noticed,because the three locks needed for the three aux processes fit into thefew extra lwlocks we allocate for 3rd party modules that don't callRequestAddinLWLocks() (NUM_USER_DEFINED_LWLOCKS, 4 by default).
1 parent051d1ba commitcbf6550

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/storage/lmgr/lwlock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ NumLWLocks(void)
167167
/* bufmgr.c needs two for each shared buffer */
168168
numLocks+=2*NBuffers;
169169

170-
/*lock.c needs oneperbackend */
171-
numLocks+=MaxBackends;
170+
/*proc.c needs onefor eachbackend or auxiliary process */
171+
numLocks+=MaxBackends+NUM_AUXILIARY_PROCS;
172172

173173
/* clog.c needs one per CLOG buffer */
174174
numLocks+=NUM_CLOG_BUFFERS;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp