From 772d0f9345adc32c401ec9098083a4ffc0ff4603 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 21 Dec 2003 00:33:33 +0000 Subject: [PATCH] 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. --- src/backend/storage/lmgr/proc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index a4bab87e24..a0256fb2aa 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $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 $ * *------------------------------------------------------------------------- */ @@ -95,8 +95,8 @@ static bool CheckStatementTimeout(void); int ProcGlobalSemas(int maxBackends) { - /* We need a sema per backend, plus one for the dummy process. */ - return maxBackends + 1; + /* We need a sema per backend, plus one for each dummy process. */ + return maxBackends + NUM_DUMMY_PROCS; } /* -- 2.40.0