summaryrefslogtreecommitdiff
path: root/src
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:09:03 +0900
commitbf19a6fe32840bbb56c10a370df38a56666994cb (patch)
tree29cea8e335868a2e02edbb2dedcbb08027f09cdd /src
parent3bf894feebcb8339b5e7348facf20f7ccf596af4 (diff)
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.
Diffstat (limited to 'src')
-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 030ffca593f..1850dc94b7e 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