]> granicus.if.org Git - postgresql/commitdiff
Fix typo in comment
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 14 Apr 2015 15:12:18 +0000 (12:12 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 14 Apr 2015 15:12:18 +0000 (12:12 -0300)
SLRU_SEGMENTS_PER_PAGE -> SLRU_PAGES_PER_SEGMENT

I introduced this ancient typo in subtrans.c and later propagated it to
multixact.c.  I fixed the latter in f741300c, but only back to 9.3;
backpatch to all supported branches for consistency.

src/backend/access/transam/multixact.c
src/backend/access/transam/subtrans.c

index b80d0d910330c9f7ddafa13f2fc0559f09c03fb5..5875ca182706263fc488b91fc7bab628a7eb1dd0 100644 (file)
@@ -70,7 +70,7 @@
  * Note: because both MultiXactOffsets and TransactionIds are 32 bits and
  * wrap around at 0xFFFFFFFF, MultiXact page numbering also wraps around at
  * 0xFFFFFFFF/MULTIXACT_*_PER_PAGE, and segment numbering at
- * 0xFFFFFFFF/MULTIXACT_*_PER_PAGE/SLRU_SEGMENTS_PER_PAGE.  We need take no
+ * 0xFFFFFFFF/MULTIXACT_*_PER_PAGE/SLRU_PAGES_PER_SEGMENT.  We need take no
  * explicit notice of that fact in this module, except when comparing segment
  * and page numbers in TruncateMultiXact
  * (see MultiXact{Offset,Member}PagePrecedes).
index 3b283aa5fc9d4d69f0fb2327a3d9056b85156396..05d3f93c9fe11226927351350bcb9370dc1a9489 100644 (file)
@@ -42,7 +42,7 @@
  * Note: because TransactionIds are 32 bits and wrap around at 0xFFFFFFFF,
  * SubTrans page numbering also wraps around at
  * 0xFFFFFFFF/SUBTRANS_XACTS_PER_PAGE, and segment numbering at
- * 0xFFFFFFFF/SUBTRANS_XACTS_PER_PAGE/SLRU_SEGMENTS_PER_PAGE.  We need take no
+ * 0xFFFFFFFF/SUBTRANS_XACTS_PER_PAGE/SLRU_PAGES_PER_SEGMENT.  We need take no
  * explicit notice of that fact in this module, except when comparing segment
  * and page numbers in TruncateSUBTRANS (see SubTransPagePrecedes).
  */