Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 30012a0

Browse filesBrowse 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
Copy full SHA for 30012a0

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
  • src/backend/access/transam
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/backend/access/transam/xlog.c

Copy file name to clipboardExpand all lines: src/backend/access/transam/xlog.c
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.