1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-05 23:56:58 +03:00

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.
This commit is contained in:
Tatsuo Ishii 2017-08-01 08:00:11 +09:00
parent d6f87a23d0
commit ca99f5b5fd

View 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