summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2017-08-01 08:00:11 +0900
committerTatsuo Ishii <ishii@postgresql.org>2017-08-01 08:08:47 +0900
commitca99f5b5fd90828f150714021f517de46a47dfe6 (patch)
tree16b708d6e5a6e73605c90ef43a3287e227f857ad
parentd6f87a23d016d6cae9a062fb83d3d851ff1a5305 (diff)
downloadpostgresql-ca99f5b5fd90828f150714021f517de46a47dfe6.tar.gz
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.
-rw-r--r--src/include/access/xlog_internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h
index e9bf51646a..cbf7910d58 100644
--- a/src/include/access/xlog_internal.h
+++ b/src/include/access/xlog_internal.h
@@ -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