Skip to content
Snippets Groups Projects
Commit 7a315a09 authored by Tom Lane's avatar Tom Lane
Browse files

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.
parent 6f5c38dc
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment