Fix thinko in comment.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 2 May 2013 15:08:43 +0000 (18:08 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 2 May 2013 15:11:18 +0000 (18:11 +0300)
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.

src/backend/access/transam/xlog.c

index 9aecad60209e2a540e69c154daa0f18742d07c8f..f13f31310795bbd2e5ce6896003577ad32da3733 100644 (file)
@@ -3716,7 +3716,7 @@ ReadRecord(XLogRecPtr *RecPtr, int emode, bool fetching_ckpt)
        if (XLOG_BLCKSZ - (RecPtr->xrecoff % XLOG_BLCKSZ) < SizeOfXLogRecord)
            NextLogPage(*RecPtr);
 
-       /* Check for crossing of xlog segment boundary */
+       /* Check for crossing of xlog logid boundary */
        if (RecPtr->xrecoff >= XLogFileSize)
        {
            (RecPtr->xlogid)++;