Re: BgBufferSync(): clarification about reusable_buffers variable

2025-02-20 Thread Ashutosh Bapat
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

BgBufferSync(): clarification about reusable_buffers variable

2025-02-07 Thread M vd H
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(