Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0c41c83

Browse files
Clear up btree_xlog_split() alignment comment.
Adjust a comment that describes how alignment of the new left page highkey works in btree_xlog_split(), the nbtree page split REDO routine.The wording used before commit2c03216 is much clearer, so go backto that.
1 parent90d7f66 commit0c41c83

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)

[8]ページ先頭

©2009-2025 Movatter.jp