diff options
author | Jan Wieck <JanWieck@Yahoo.com> | 2004-02-12 15:06:56 +0000 |
---|---|---|
committer | Jan Wieck <JanWieck@Yahoo.com> | 2004-02-12 15:06:56 +0000 |
commit | fc65a3e1fd1e2bc19d2417ac07e768e7d168fff9 (patch) | |
tree | eefff066e72d608c829703858410d9cdba45e554 /src/include/storage/buf_internals.h | |
parent | 76f02b51b67dbf23b471ab4382ea49908eb8739c (diff) | |
download | postgresql-fc65a3e1fd1e2bc19d2417ac07e768e7d168fff9.tar.gz postgresql-fc65a3e1fd1e2bc19d2417ac07e768e7d168fff9.zip |
Fixed bug where FlushRelationBuffers() did call StrategyInvalidateBuffer()
for already empty buffers because their buffer tag was not cleard out
when the buffers have been invalidated before.
Also removed the misnamed BM_FREE bufhdr flag and replaced the checks,
which effectively ask if the buffer is unpinned, with checks against the
refcount field.
Jan
Diffstat (limited to 'src/include/storage/buf_internals.h')
-rw-r--r-- | src/include/storage/buf_internals.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/include/storage/buf_internals.h b/src/include/storage/buf_internals.h index ce4be5439b4..f401791d93a 100644 --- a/src/include/storage/buf_internals.h +++ b/src/include/storage/buf_internals.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/buf_internals.h,v 1.67 2004/01/15 16:14:26 wieck Exp $ + * $PostgreSQL: pgsql/src/include/storage/buf_internals.h,v 1.68 2004/02/12 15:06:56 wieck Exp $ * *------------------------------------------------------------------------- */ @@ -36,11 +36,10 @@ extern int ShowPinTrace; #define BM_DIRTY (1 << 0) #define BM_VALID (1 << 1) #define BM_DELETED (1 << 2) -#define BM_FREE (1 << 3) -#define BM_IO_IN_PROGRESS (1 << 4) -#define BM_IO_ERROR (1 << 5) -#define BM_JUST_DIRTIED (1 << 6) -#define BM_PIN_COUNT_WAITER (1 << 7) +#define BM_IO_IN_PROGRESS (1 << 3) +#define BM_IO_ERROR (1 << 4) +#define BM_JUST_DIRTIED (1 << 5) +#define BM_PIN_COUNT_WAITER (1 << 6) typedef bits16 BufFlags; |