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/buffer/buf_table.c | |
parent | 818fb55ac49b4b20e65d9899fc1784e54e86db58 (diff) |
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/buffer/buf_table.c')
-rw-r--r-- | src/backend/storage/buffer/buf_table.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/backend/storage/buffer/buf_table.c b/src/backend/storage/buffer/buf_table.c index 9e8f1647786..671b13efa0f 100644 --- a/src/backend/storage/buffer/buf_table.c +++ b/src/backend/storage/buffer/buf_table.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.21 2001/03/22 03:59:44 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/buffer/buf_table.c,v 1.22 2001/09/29 04:02:22 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -23,8 +23,7 @@ * * Synchronization: * - * All routines in this file assume buffer manager spinlock is - * held by their caller. + * All routines in this file assume BufMgrLock is held by their caller. */ #include "postgres.h" |