Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 772d0f9

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 for some values of maxBackends on SysV-sema platforms, too.
1 parent 16cc9df commit 772d0f9

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

+3-3
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(int maxBackends)
9797
{
98-
/* We need a sema per backend, plus one for the dummy process. */
99-
return maxBackends + 1;
98+
/* We need a sema per backend, plus one for each dummy process. */
99+
return maxBackends + NUM_DUMMY_PROCS;
100100
}
101101

102102
/*

0 commit comments

Comments
 (0)