diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-09-27 16:29:13 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-09-27 16:29:13 +0000 |
| commit | 3d59ad00e8cc6a1bd919280be839fca152149ec2 (patch) | |
| tree | 7eea422e403926dfe6dca3e46d3eb9b1c57f9bf7 /src/backend/storage/lmgr/lock.c | |
| parent | 19656b7445995b0aa157a7e595c61ed10d1ba378 (diff) | |
| download | postgresql-3d59ad00e8cc6a1bd919280be839fca152149ec2.tar.gz | |
Remove useless LockDisable() function and associated overhead, per my
proposal of 26-Aug.
Diffstat (limited to 'src/backend/storage/lmgr/lock.c')
| -rw-r--r-- | src/backend/storage/lmgr/lock.c | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index 2d14245a09..3fc31ed6a2 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.94 2001/09/07 00:27:29 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.95 2001/09/27 16:29:12 tgl Exp $ * * NOTES * Outside modules can create a lock table and acquire/release @@ -166,11 +166,6 @@ static LOCKMASK BITS_OFF[MAX_LOCKMODES]; static LOCKMASK BITS_ON[MAX_LOCKMODES]; /* - * Disable flag - */ -static bool LockingIsDisabled; - -/* * map from lockmethod to the lock table structure */ static LOCKMETHODTABLE *LockMethodTable[MAX_LOCK_METHODS]; @@ -195,23 +190,6 @@ InitLocks(void) } } -/* - * LockDisable -- sets LockingIsDisabled flag to TRUE or FALSE. - */ -void -LockDisable(bool status) -{ - LockingIsDisabled = status; -} - -/* - * Boolean function to determine current locking status - */ -bool -LockingDisabled(void) -{ - return LockingIsDisabled; -} /* * Fetch the lock method table associated with a given lock @@ -509,9 +487,6 @@ LockAcquire(LOCKMETHOD lockmethod, LOCKTAG *locktag, return FALSE; } - if (LockingIsDisabled) - return TRUE; - masterLock = lockMethodTable->ctl->masterLock; SpinAcquire(masterLock); @@ -1047,9 +1022,6 @@ LockRelease(LOCKMETHOD lockmethod, LOCKTAG *locktag, return FALSE; } - if (LockingIsDisabled) - return TRUE; - masterLock = lockMethodTable->ctl->masterLock; SpinAcquire(masterLock); |
