summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas2020-01-28 10:55:30 +0000
committerHeikki Linnakangas2020-01-28 10:55:30 +0000
commit30012a04a6c8127397a8ab71e160d9c7e7fbe874 (patch)
tree72f6d5bf15709f162dfa8f3ce8d3e65b6bfc0b32
parent11da6bccd178c1e0d5b0fbc4bccc538f8a005dd3 (diff)
Fix randAccess setting in ReadRecord()
Commit 38a957316d got this backwards. Author: Kyotaro Horiguchi Discussion: https://www.postgresql.org/message-id/[email protected]
-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 882d5e8a73f..6e09ded5974 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -4265,7 +4265,7 @@ ReadRecord(XLogReaderState *xlogreader, int emode,
/* Pass through parameters to XLogPageRead */
private->fetching_ckpt = fetching_ckpt;
private->emode = emode;
- private->randAccess = (xlogreader->ReadRecPtr != InvalidXLogRecPtr);
+ private->randAccess = (xlogreader->ReadRecPtr == InvalidXLogRecPtr);
/* This is the first attempt to read this page. */
lastSourceFailed = false;