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

Lines changed: 1 addition & 1 deletion
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)
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