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

Commitc56e8af

Browse files
Fix comment for MAX_BACKENDS.
This comment mentions that we check that the configured number ofbackends does not exceed MAX_BACKENDS in RegisterBackgroundWorker()and relevant GUC check hooks, neither of which has those checksanymore. To fix, adjust this comment to say that we do the checkin InitializeMaxBackends().Oversights in commits6bc8ef0 and0b1fe14.Reviewed-by: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/Z7zOEzz8lNjaU9yf%40nathan
1 parente87c14b commitc56e8af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/include/storage/procnumber.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ typedef int ProcNumber;
3232
* currently realistic configurations. Even if that limitation were removed,
3333
* we still could not a) exceed 2^23-1 because inval.c stores the ProcNumber
3434
* as a 3-byte signed integer, b) INT_MAX/4 because some places compute
35-
* 4*MaxBackends without any overflow check.This is rechecked inthe
36-
*relevant GUC check hooks andinRegisterBackgroundWorker().
35+
* 4*MaxBackends without any overflow check.We check thatthe configured
36+
*number of backends does not exceed MAX_BACKENDSinInitializeMaxBackends().
3737
*/
3838
#defineMAX_BACKENDS_BITS18
3939
#defineMAX_BACKENDS((1U << MAX_BACKENDS_BITS)-1)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp