Skip to content

Commit 0c41c83

Browse files
Clear up btree_xlog_split() alignment comment.
Adjust a comment that describes how alignment of the new left page high key works in btree_xlog_split(), the nbtree page split REDO routine. The wording used before commit 2c03216 is much clearer, so go back to that.
1 parent 90d7f66 commit 0c41c83

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/access/nbtree/nbtxlog.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,11 @@ btree_xlog_split(bool onleft, XLogReaderState *record)
281281
datalen -= newitemsz;
282282
}
283283

284-
/* Extract left hikey and its size (assuming 16-bit alignment) */
284+
/*
285+
* Extract left hikey and its size. We assume that 16-bit alignment
286+
* is enough to apply IndexTupleSize (since it's fetching from a
287+
* uint16 field).
288+
*/
285289
left_hikey = (IndexTuple) datapos;
286290
left_hikeysz = MAXALIGN(IndexTupleSize(left_hikey));
287291
datapos += left_hikeysz;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy