Skip to content

Commit ea208ac

Browse files
author
Neil Conway
committed
Remove an unused variable "waitingForSignal". From Qingqing Zhou.
1 parent ad9201f commit ea208ac

File tree

1 file changed

+1
-5
lines changed
  • src/backend/storage/lmgr

1 file changed

+1
-5
lines changed

src/backend/storage/lmgr/proc.c

Lines changed: 1 addition & 5 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.156 2004/12/31 22:01:05 pgsql Exp $
11+
* $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.157 2005/04/15 04:18:10 neilc Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -74,7 +74,6 @@ static PROC_HDR *ProcGlobal = NULL;
7474
static PGPROC *DummyProcs = NULL;
7575

7676
static bool waitingForLock = false;
77-
static bool waitingForSignal = false;
7877

7978
/* Mark these volatile because they can be changed by signal handler */
8079
static volatile bool statement_timeout_active = false;
@@ -962,9 +961,7 @@ CheckDeadLock(void)
962961
void
963962
ProcWaitForSignal(void)
964963
{
965-
waitingForSignal = true;
966964
PGSemaphoreLock(&MyProc->sem, true);
967-
waitingForSignal = false;
968965
}
969966

970967
/*
@@ -978,7 +975,6 @@ void
978975
ProcCancelWaitForSignal(void)
979976
{
980977
PGSemaphoreReset(&MyProc->sem);
981-
waitingForSignal = false;
982978
}
983979

984980
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy