Fix comment.
authorTatsuo Ishii <ishii@postgresql.org>
Mon, 31 Jul 2017 23:00:11 +0000 (08:00 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Mon, 31 Jul 2017 23:00:11 +0000 (08:00 +0900)
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.

src/include/access/xlog_internal.h

index a661ec01808ed28f4d229dab79b3181245f0ffc6..7453dcbd0eb26e809586ef25877a124dfe65381a 100644 (file)
@@ -96,7 +96,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