]> granicus.if.org Git - postgresql/commitdiff
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:28 +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 dd7d1a22b4bed73176315668458a7aa6749977ed..3d2458920e7fefdb13f1a95d33bf03a1957b18bf 100644 (file)
@@ -3777,7 +3777,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)++;