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

Commit4a5d55e

Browse files
committed
Fix bug in the new B-tree incomplete-split code.
Forgot to update LSN of left sibling's page, when creating a new root.I fixed this for regular insertions and page splits earlier, but missednew root creation.
1 parent45e67a2 commit4a5d55e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2120,6 +2120,7 @@ _bt_newroot(Relation rel, Buffer lbuf, Buffer rbuf)
21202120

21212121
recptr=XLogInsert(RM_BTREE_ID,XLOG_BTREE_NEWROOT,rdata);
21222122

2123+
PageSetLSN(lpage,recptr);
21232124
PageSetLSN(rootpage,recptr);
21242125
PageSetLSN(metapg,recptr);
21252126
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp