From: Heikki Linnakangas Date: Thu, 2 May 2013 15:08:43 +0000 (+0300) Subject: Fix thinko in comment. X-Git-Tag: REL9_2_5~108 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fa56e636e42d1bc969483ed1f2c93d47abe39ba;p=postgresql 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. --- diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 26c9ef3d41..d4f96966c0 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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)++;