On Fri, Jun 28, 2024 at 4:18 PM Amit Kapila <amit.kapil...@gmail.com> wrote: > ... > Shouldn't the check for flushptr (if (flushptr < targetPagePtr + > reqLen)) be moved immediately after the call to WalSndWaitForWal(). > The comment seems to suggests the same: "Make sure we have enough WAL > available before retrieving the current timeline. .."
OK, I have changed the code as suggested. Please see the attached v2 patch. make check-world was successful. ====== Kind Regards, Peter Smith. Fujitsu Australia
v2-0001-Relocate-the-flushptr-checking-code.patch
Description: Binary data