• Tom Lane's avatar
    Dept. of second thoughts: fix loop in BgBufferSync so that the exit when · 7a315a09
    Tom Lane authored
    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.
    7a315a09
bufmgr.c 73.4 KB