bufmgr code cleanup

Поиск
Список
Период
Сортировка
От Neil Conway
Тема bufmgr code cleanup
Дата
Msg-id 1067840921.3089.184.camel@tokyo
обсуждение исходный текст
Ответы Re: bufmgr code cleanup  (Jan Wieck <JanWieck@Yahoo.com>)
Список pgsql-patches
This patch cleans up some of the bufmgr code:

- replace uses of

        LockBuffer(buf, BUFFER_LOCK_UNLOCK);
        ReleaseBuffer(buf);

  with the equivalent, but more concise:

    UnlockAndReleaseBuffer(buf);

- analogous changes were made by replacing LockBuffer() + WriteBuffer()
with UnlockAndWriteBuffer()

- remove a bunch of #ifdef BMTRACE code, since it was ugly and broken
anyway

- remove an unused buffer descriptor bit flag (BM_PRIVATE)

- move the definition of INVALID_DESCRIPTOR to out of bufmgr.h and into
freelist.c, since it is the only file that uses it

- remove another unused function, and fix a few comments

Please apply to the CVS HEAD.

-Neil


Вложения

В списке pgsql-patches по дате отправления:

Предыдущее
От: Claudio Natoli
Дата:
Сообщение: Win32 patch for Makefile.shlib
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: "make check" improvement for cygwin