Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera2013-01-18 14:17:18 +0000
committerAlvaro Herrera2013-01-18 14:19:53 +0000
commit8c17144c7555dbe3ed255c3556ca4f91f81c024f (patch)
tree12bf2f0b7f033c5f5c70186f79591773d40b7597
parent74a82bafe434adbf80872ddd17f3e8c7a0eadc71 (diff)
Fix off-by-one bug in xlog reading logic
Bug reported by Michael Paquier Author: Andres Freund
-rw-r--r--src/backend/access/transam/xlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 3ac3b767dd0..9ad92271795 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -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)
{