We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16cc9df commit 772d0f9Copy full SHA for 772d0f9
src/backend/storage/lmgr/proc.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.141 2003/12/20 17:31:21 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.142 2003/12/21 00:33:33 tgl Exp $
12
13
*-------------------------------------------------------------------------
14
*/
@@ -95,8 +95,8 @@ static bool CheckStatementTimeout(void);
95
int
96
ProcGlobalSemas(int maxBackends)
97
{
98
- /* We need a sema per backend, plus one for the dummy process. */
99
- return maxBackends + 1;
+ /* We need a sema per backend, plus one for each dummy process. */
+ return maxBackends + NUM_DUMMY_PROCS;
100
}
101
102
/*
0 commit comments