]> granicus.if.org Git - postgresql/commit
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)
commit7a315a09dc0f7a1f903b89022a2a833c1719145b
tree56bbb50df14a7caa843411446b291d2acbf117f9
parent6f5c38dcd0dfb391bcbaa683a96f4a62c574d95a
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