Skip to content

Commit e1d1d80

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 424cc31 commit e1d1d80

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
@@ -3777,7 +3777,7 @@ ReadRecord(XLogRecPtr *RecPtr, int emode, bool fetching_ckpt)
37773777
if (XLOG_BLCKSZ - (RecPtr->xrecoff % XLOG_BLCKSZ) < SizeOfXLogRecord)
37783778
NextLogPage(*RecPtr);
37793779

3780-
/* Check for crossing of xlog segment boundary */
3780+
/* Check for crossing of xlog logid boundary */
37813781
if (RecPtr->xrecoff >= XLogFileSize)
37823782
{
37833783
(RecPtr->xlogid)++;

0 commit comments

Comments
 (0)