]> granicus.if.org Git - postgresql/commit
Fixed bug where FlushRelationBuffers() did call StrategyInvalidateBuffer()
authorJan Wieck <JanWieck@Yahoo.com>
Thu, 12 Feb 2004 15:06:56 +0000 (15:06 +0000)
committerJan Wieck <JanWieck@Yahoo.com>
Thu, 12 Feb 2004 15:06:56 +0000 (15:06 +0000)
commitfc65a3e1fd1e2bc19d2417ac07e768e7d168fff9
treeeefff066e72d608c829703858410d9cdba45e554
parent76f02b51b67dbf23b471ab4382ea49908eb8739c
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
src/backend/storage/buffer/buf_init.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/freelist.c
src/include/storage/buf_internals.h