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

Commit772d0f9

Browse files
committed
The recent DUMMY_PROCS patch broke accounting for the number of semaphores
needed. This caused us to fail all the time on Darwin, and we'd fail forsome values of maxBackends on SysV-sema platforms, too.
1 parent16cc9df commit772d0f9

File tree

1 file changed

+3
-3
lines changed
  • src/backend/storage/lmgr

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.141 2003/12/20 17:31:21 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.142 2003/12/21 00:33:33 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -95,8 +95,8 @@ static bool CheckStatementTimeout(void);
9595
int
9696
ProcGlobalSemas(intmaxBackends)
9797
{
98-
/* We need a sema per backend, plus one forthe dummy process. */
99-
returnmaxBackends+1;
98+
/* We need a sema per backend, plus one foreach dummy process. */
99+
returnmaxBackends+NUM_DUMMY_PROCS;
100100
}
101101

102102
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp