Commit 0c41c83d authored by Peter Geoghegan's avatar Peter Geoghegan

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 2c03216d is much clearer, so go back
to that.
parent 90d7f660
...@@ -281,7 +281,11 @@ btree_xlog_split(bool onleft, XLogReaderState *record) ...@@ -281,7 +281,11 @@ btree_xlog_split(bool onleft, XLogReaderState *record)
datalen -= newitemsz; datalen -= newitemsz;
} }
/* Extract left hikey and its size (assuming 16-bit alignment) */ /*
* Extract left hikey and its size. We assume that 16-bit alignment
* is enough to apply IndexTupleSize (since it's fetching from a
* uint16 field).
*/
left_hikey = (IndexTuple) datapos; left_hikey = (IndexTuple) datapos;
left_hikeysz = MAXALIGN(IndexTupleSize(left_hikey)); left_hikeysz = MAXALIGN(IndexTupleSize(left_hikey));
datapos += left_hikeysz; datapos += left_hikeysz;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment