Content-Length: 260494 | pFad | http://github.com/postgrespro/postgres/commit/30012a04a6c8127397a8ab71e160d9c7e7fbe874

F7 Fix randAccess setting in ReadRecord() · postgrespro/postgres@30012a0 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/30012a04a6c8127397a8ab71e160d9c7e7fbe874

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy