Here's a rebase.
bg_buffer_sync_clarity.patch
Description: Binary data
Hi, tks for working on this. I had a chance to look at this while
googling BgBufferSync
function.
>
> I also think tha reusable_buffers keep track of the number of reusable
> buffers. BgBufferSync() calls SyncOneBuffer() with skip_recently_used
> = true. In that case, if SyncOneBuffer() finds th
Hi Marcel,
On Sat, Feb 8, 2025 at 6:24 AM M vd H wrote:
>
> I have been reading the source code of the BgWriter, and there is some
> code in BgBufferSync() that I don't fully understand.
>
> In BgBufferSync(), we have the following code:
>
> while (num_to_scan > 0 && reusable_buffers < upcom
I have been reading the source code of the BgWriter, and there is some
code in BgBufferSync() that I don't fully understand.
In BgBufferSync(), we have the following code:
while (num_to_scan > 0 && reusable_buffers < upcoming_alloc_est)
{
intsync_state = SyncOneBuffer(