bufmgr code cleanup

Поиск
Список
Период
Сортировка
Искать
От
Neil Conway
Тема
bufmgr code cleanup
Дата
Msg-id
1067840921.3089.184.camel@tokyo
Список
Дерево обсуждения
bufmgr code cleanup Neil Conway <neilc@samurai.com>
Re: bufmgr code cleanup Jan Wieck <JanWieck@Yahoo.com>
Re: bufmgr code cleanup Tom Lane <tgl@sss.pgh.pa.us>
Re: bufmgr code cleanup Neil Conway <neilc@samurai.com>
Re: bufmgr code cleanup Tom Lane <tgl@sss.pgh.pa.us>
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
Дата:
FAQ