From: Tatsuo Ishii Date: Mon, 31 Jul 2017 23:00:11 +0000 (+0900) Subject: Fix comment. X-Git-Tag: REL9_3_18~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf19a6fe32840bbb56c10a370df38a56666994cb;p=postgresql Fix comment. XLByteToSeg and XLByteToPrevSeg calculate only a segment number. The definition of these macros were modified by commit dfda6ebaec6763090fb78b458a979b558c50b39b but the comment remain unchanged. Patch by Yugo Nagata. Back patched to 9.3 and beyond. --- diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h index 030ffca593..1850dc94b7 100644 --- a/src/include/access/xlog_internal.h +++ b/src/include/access/xlog_internal.h @@ -120,7 +120,7 @@ typedef XLogLongPageHeaderData *XLogLongPageHeader; (dest) = (segno) * XLOG_SEG_SIZE + (offset) /* - * Compute ID and segment from an XLogRecPtr. + * Compute a segment number from an XLogRecPtr. * * For XLByteToSeg, do the computation at face value. For XLByteToPrevSeg, * a boundary byte is taken to be in the previous segment. This is suitable