Fix off-by-one bug in xlog reading logic
Bug reported by Michael Paquier Author: Andres Freund
This commit is contained in:
parent
74a82bafe4
commit
8c17144c75
@ -8875,7 +8875,7 @@ retry:
|
|||||||
/* See if we need to retrieve more data */
|
/* See if we need to retrieve more data */
|
||||||
if (readFile < 0 ||
|
if (readFile < 0 ||
|
||||||
(readSource == XLOG_FROM_STREAM &&
|
(readSource == XLOG_FROM_STREAM &&
|
||||||
receivedUpto <= targetPagePtr + reqLen))
|
receivedUpto < targetPagePtr + reqLen))
|
||||||
{
|
{
|
||||||
if (StandbyMode)
|
if (StandbyMode)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user