diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-09-29 04:02:27 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-09-29 04:02:27 +0000 |
commit | 499abb0c0f21cb861c5af1d49a06469f3cfcc1eb (patch) | |
tree | 0af6262d9b6d1159315e93e90e69047b959ea5f5 /src/backend/storage/lmgr/deadlock.c | |
parent | 818fb55ac49b4b20e65d9899fc1784e54e86db58 (diff) | |
download | postgresql-499abb0c0f21cb861c5af1d49a06469f3cfcc1eb.tar.gz postgresql-499abb0c0f21cb861c5af1d49a06469f3cfcc1eb.zip |
Implement new 'lightweight lock manager' that's intermediate between
existing lock manager and spinlocks: it understands exclusive vs shared
lock but has few other fancy features. Replace most uses of spinlocks
with lightweight locks. All remaining uses of spinlocks have very short
lock hold times (a few dozen instructions), so tweak spinlock backoff
code to work efficiently given this assumption. All per my proposal on
pghackers 26-Sep-01.
Diffstat (limited to 'src/backend/storage/lmgr/deadlock.c')
-rw-r--r-- | src/backend/storage/lmgr/deadlock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/storage/lmgr/deadlock.c b/src/backend/storage/lmgr/deadlock.c index 160fc64fb24..a69a0784749 100644 --- a/src/backend/storage/lmgr/deadlock.c +++ b/src/backend/storage/lmgr/deadlock.c @@ -12,7 +12,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/deadlock.c,v 1.3 2001/03/22 03:59:46 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/deadlock.c,v 1.4 2001/09/29 04:02:24 tgl Exp $ * * Interface: * @@ -172,8 +172,8 @@ InitDeadLockChecking(void) * * We must have already locked the master lock before being called. * NOTE: although the lockctl structure appears to allow each lock - * table to have a different spinlock, all locks that can block had - * better use the same spinlock, else this code will not be adequately + * table to have a different LWLock, all locks that can block had + * better use the same LWLock, else this code will not be adequately * interlocked! */ bool |