Tweak BgBufferSync() so that a persistent write error on a dirty buffer

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6eac4e69cf348fcce13e8d8d63196876bf80d730
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-08-02T20:52:08Z
Releases: 8.1.0
Tweak BgBufferSync() so that a persistent write error on a dirty buffer
doesn't block the bgwriter from making progress writing out other buffers.
This was a hard problem in the context of the ARC/2Q design, but it's
trivial in the context of clock sweep ... just advance the sweep counter
before we try to write not after.

Files

PathChange+/−
src/backend/postmaster/bgwriter.c modified +2 −3
src/backend/storage/buffer/bufmgr.c modified +15 −8