8000 Fix thinko in comment. · sqlparser/postgres@5f14acd · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f14acd

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 2751c7f commit 5f14acd

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
@@ -3716,7 +3716,7 @@ ReadRecord(XLogRecPtr *RecPtr, int emode, bool fetching_ckpt)
37163716
if (XLOG_BLCKSZ - (RecPtr->xrecoff % XLOG_BLCKSZ) < SizeOfXLogRecord)
37173717
NextLogPage(*RecPtr);
37183718

3719-
/* Check for crossing of xlog segment boundary */
3719+
/* Check for crossing of xlog logid boundary */
37203720
if (RecPtr->xrecoff >= XLogFileSize)
37213721
{
37223722
(RecPtr->xlogid)++;

0 commit comments

Comments
 (0)
0