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/include/storage/freespace.h | |
| parent | 818fb55ac49b4b20e65d9899fc1784e54e86db58 (diff) | |
| download | postgresql-499abb0c0f21cb861c5af1d49a06469f3cfcc1eb.tar.gz | |
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/include/storage/freespace.h')
| -rw-r--r-- | src/include/storage/freespace.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/include/storage/freespace.h b/src/include/storage/freespace.h index 0f11dd02f9..affde80717 100644 --- a/src/include/storage/freespace.h +++ b/src/include/storage/freespace.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: freespace.h,v 1.2 2001/07/02 20:50:46 tgl Exp $ + * $Id: freespace.h,v 1.3 2001/09/29 04:02:26 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -16,11 +16,8 @@ #include "storage/block.h" #include "storage/relfilenode.h" -#include "storage/spin.h" -extern SPINLOCK FreeSpaceLock; - extern int MaxFSMRelations; extern int MaxFSMPages; |
