]> granicus.if.org Git - postgresql/commit
Get rid of SetBufferWriteMode(), which was an accident waiting to happen.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 31 Mar 2000 02:43:31 +0000 (02:43 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 31 Mar 2000 02:43:31 +0000 (02:43 +0000)
commitca05ba2a9d6e9b2a41c16eb1844fdc4c66fce1d4
treee7d8b10d9973ab852992fd856c63e0dac66d1cb3
parent5717dcb8a7b808c619ee092e124b2cbe8bf2e2c1
Get rid of SetBufferWriteMode(), which was an accident waiting to happen.
In the event of an elog() while the mode was set to immediate write,
there was no way for it to be set back to the normal delayed write.
The mechanism was a waste of space and cycles anyway, since the only user
was varsup.c, which could perfectly well call FlushBuffer directly.
Now it does just that, and the notion of a write mode is gone.
src/backend/access/transam/varsup.c
src/backend/storage/buffer/bufmgr.c
src/include/storage/bufmgr.h