aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2020-01-28 12:55:30 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2020-01-28 12:55:30 +0200
commit30012a04a6c8127397a8ab71e160d9c7e7fbe874 (patch)
tree72f6d5bf15709f162dfa8f3ce8d3e65b6bfc0b32 /src/backend/access/transam/xlog.c
parent11da6bccd178c1e0d5b0fbc4bccc538f8a005dd3 (diff)
downloadpostgresql-30012a04a6c8127397a8ab71e160d9c7e7fbe874.tar.gz
postgresql-30012a04a6c8127397a8ab71e160d9c7e7fbe874.zip
Fix randAccess setting in ReadRecord()
Commit 38a957316d got this backwards. Author: Kyotaro Horiguchi Discussion: https://www.postgresql.org/message-id/20200128.194408.2260703306774646445.horikyota.ntt@gmail.com
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-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;