Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 30012a0

Browse files
committed
Fix randAccess setting in ReadRecord()
Commit 38a9573 got this backwards. Author: Kyotaro Horiguchi Discussion: https://www.postgresql.org/message-id/20200128.194408.2260703306774646445.horikyota.ntt@gmail.com
1 parent 11da6bc commit 30012a0

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -4265,7 +4265,7 @@ ReadRecord(XLogReaderState *xlogreader, int emode,
42654265
/* Pass through parameters to XLogPageRead */
42664266
private->fetching_ckpt = fetching_ckpt;
42674267
private->emode = emode;
4268-
private->randAccess = (xlogreader->ReadRecPtr != InvalidXLogRecPtr);
4268+
private->randAccess = (xlogreader->ReadRecPtr == InvalidXLogRecPtr);
42694269

42704270
/* This is the first attempt to read this page. */
42714271
lastSourceFailed = false;

0 commit comments

Comments
 (0)