Fix buf advancement.

This commit is contained in:
Arseny Sher
2023-12-06 10:09:35 +03:00
parent b66c47fc31
commit 22d9840dff

View File

@@ -373,6 +373,7 @@ NeonWALReadRemote(NeonWALReader *state, char *buf, XLogRecPtr startptr, Size cou
state->rem_lsn += to_copy;
if (state->wal_rem_len == 0)
state->wal_ptr = NULL; /* freed by libpqwalproposer */
buf += to_copy;
state->req_progress += to_copy;
if (state->req_progress == state->req_len)
{