From 499abb0c0f21cb861c5af1d49a06469f3cfcc1eb Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 29 Sep 2001 04:02:27 +0000 Subject: 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. --- src/backend/storage/buffer/buf_table.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/backend/storage/buffer/buf_table.c') 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" -- cgit v1.2.3