From ea208aca0044a1d72cf88fc372a128b89d4233cd Mon Sep 17 00:00:00 2001 From: Neil Conway Date: Fri, 15 Apr 2005 04:18:10 +0000 Subject: [PATCH] Remove an unused variable "waitingForSignal". From Qingqing Zhou. --- src/backend/storage/lmgr/proc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index 5056f523d7..c3ba654421 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.156 2004/12/31 22:01:05 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.157 2005/04/15 04:18:10 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -74,7 +74,6 @@ static PROC_HDR *ProcGlobal = NULL; static PGPROC *DummyProcs = NULL; static bool waitingForLock = false; -static bool waitingForSignal = false; /* Mark these volatile because they can be changed by signal handler */ static volatile bool statement_timeout_active = false; @@ -962,9 +961,7 @@ CheckDeadLock(void) void ProcWaitForSignal(void) { - waitingForSignal = true; PGSemaphoreLock(&MyProc->sem, true); - waitingForSignal = false; } /* @@ -978,7 +975,6 @@ void ProcCancelWaitForSignal(void) { PGSemaphoreReset(&MyProc->sem); - waitingForSignal = false; } /* -- 2.40.0