Thread: pgsql-server/src backend/storage/buffer/buf_in ...

pgsql-server/src backend/storage/buffer/buf_in ...

From
wieck@svr1.postgresql.org (Jan Wieck)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    wieck@svr1.postgresql.org    04/02/12 11:06:56

Modified files:
    src/backend/storage/buffer: buf_init.c bufmgr.c freelist.c
    src/include/storage: buf_internals.h

Log message:
    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