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

Commit954523c

Browse files
committed
Fix bug in the new B-tree incomplete-split code.
Inserting a downlink to an internal page clears the incomplete-split flagof the child's left sibling, so the left sibling's LSN also needs to beupdated.
1 parentf753429 commit954523c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎src/backend/access/nbtree/nbtinsert.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -910,6 +910,10 @@ _bt_insertonpg(Relation rel,
910910
{
911911
PageSetLSN(metapg,recptr);
912912
}
913+
if (BufferIsValid(cbuf))
914+
{
915+
PageSetLSN(BufferGetPage(cbuf),recptr);
916+
}
913917

914918
PageSetLSN(page,recptr);
915919
}
@@ -1402,6 +1406,10 @@ _bt_split(Relation rel, Buffer buf, Buffer cbuf, OffsetNumber firstright,
14021406
{
14031407
PageSetLSN(spage,recptr);
14041408
}
1409+
if (!isleaf)
1410+
{
1411+
PageSetLSN(BufferGetPage(cbuf),recptr);
1412+
}
14051413
}
14061414

14071415
END_CRIT_SECTION();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp