mirror of
https://github.com/postgres/postgres.git
synced 2026-06-09 00:32:10 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue