Skip to content

Commit 7fa56e6

Browse files
committed
Fix thinko in comment.
WAL segment means a 16 MB physical WAL file; this comment meant a logical 4 GB log file. Amit Langote. Apply to backbranches only, as the comment is gone in master.
1 parent 15b0421 commit 7fa56e6

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
@@ -3970,7 +3970,7 @@ ReadRecord(XLogRecPtr *RecPtr, int emode, bool fetching_ckpt)
39703970
if (XLOG_BLCKSZ - (RecPtr->xrecoff % XLOG_BLCKSZ) < SizeOfXLogRecord)
39713971
NextLogPage(*RecPtr);
39723972

3973-
/* Check for crossing of xlog segment boundary */
3973+
/* Check for crossing of xlog logid boundary */
39743974
if (RecPtr->xrecoff >= XLogFileSize)
39753975
{
39763976
(RecPtr->xlogid)++;

0 commit comments

Comments
 (0)