mirror of
https://github.com/postgres/postgres.git
synced 2026-07-05 07:45:54 -04:00
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 2c03216d83 is much clearer, so go back
to that.
This commit is contained in:
parent
90d7f6604b
commit
0c41c83d8f
1 changed files with 5 additions and 1 deletions
|
|
@ -281,7 +281,11 @@ btree_xlog_split(bool onleft, XLogReaderState *record)
|
|||
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_hikeysz = MAXALIGN(IndexTupleSize(left_hikey));
|
||||
datapos += left_hikeysz;
|
||||
|
|
|
|||
Loading…
Reference in a new issue