Dept. of second thoughts: fix loop in BgBufferSync so that the exit when
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 25 Sep 2007 22:11:48 +0000 (22:11 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 25 Sep 2007 22:11:48 +0000 (22:11 +0000)
commitb71d0cdd4a279329b05b0699e1fb53802f30e46b
tree43c4151448cae8a59bbcf0e408b6e11c57b6ebfe
parentd9211554c3a8527a7174d4a353812d7093eb5ebe
Dept. of second thoughts: fix loop in BgBufferSync so that the exit when
bgwriter_lru_maxpages is exceeded leaves the loop variables in the
expected state.  In the original coding, we'd fail to advance
next_to_clean, causing that buffer to be probably-uselessly rechecked next
time, and also have an off-by-one idea of the number of buffers scanned.
src/backend/storage/buffer/bufmgr.c