OSDN Git Service

Tweak BgBufferSync() so that a persistent write error on a dirty buffer
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Aug 2005 20:52:08 +0000 (20:52 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 2 Aug 2005 20:52:08 +0000 (20:52 +0000)
commit6eac4e69cf348fcce13e8d8d63196876bf80d730
tree00efe9362a0adba97226011bb2194a13961465b9
parent688784f671b39643c43d3a006af19363c1a5c4c6
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.
src/backend/postmaster/bgwriter.c
src/backend/storage/buffer/bufmgr.c