]> 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:10:39 +0000 (18:10 +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 26c9ef3d4103fb2e1a5c407f3124c547da17a218..d4f96966c0a4b93547f614b8b048e2ce98ce7d89 100644 (file)
@@ -3970,7 +3970,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)++;