mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
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 */
|
||||
if (readFile < 0 ||
|
||||
(readSource == XLOG_FROM_STREAM &&
|
||||
receivedUpto <= targetPagePtr + reqLen))
|
||||
receivedUpto < targetPagePtr + reqLen))
|
||||
{
|
||||
if (StandbyMode)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user