Commit 8c17144c authored by Alvaro Herrera's avatar Alvaro Herrera

Fix off-by-one bug in xlog reading logic

Bug reported by Michael Paquier

Author: Andres Freund
parent 74a82baf
......@@ -8875,7 +8875,7 @@ retry:
/* See if we need to retrieve more data */
if (readFile < 0 ||
(readSource == XLOG_FROM_STREAM &&
receivedUpto <= targetPagePtr + reqLen))
receivedUpto < targetPagePtr + reqLen))
{
if (StandbyMode)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment