Skip to content

Commit 8c17144

Browse files
committed
Fix off-by-one bug in xlog reading logic
Bug reported by Michael Paquier Author: Andres Freund
1 parent 74a82ba commit 8c17144

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8875,7 +8875,7 @@ XLogPageRead(XLogReaderState *xlogreader, XLogRecPtr targetPagePtr, int reqLen,
88758875
/* See if we need to retrieve more data */
88768876
if (readFile < 0 ||
88778877
(readSource == XLOG_FROM_STREAM &&
8878-
receivedUpto <= targetPagePtr + reqLen))
8878+
receivedUpto < targetPagePtr + reqLen))
88798879
{
88808880
if (StandbyMode)
88818881
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy