mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +03:00
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 missed new root creation.
This commit is contained in:
parent
45e67a2ad7
commit
4a5d55ec2b
@ -2120,6 +2120,7 @@ _bt_newroot(Relation rel, Buffer lbuf, Buffer rbuf)
|
|||||||
|
|
||||||
recptr = XLogInsert(RM_BTREE_ID, XLOG_BTREE_NEWROOT, rdata);
|
recptr = XLogInsert(RM_BTREE_ID, XLOG_BTREE_NEWROOT, rdata);
|
||||||
|
|
||||||
|
PageSetLSN(lpage, recptr);
|
||||||
PageSetLSN(rootpage, recptr);
|
PageSetLSN(rootpage, recptr);
|
||||||
PageSetLSN(metapg, recptr);
|
PageSetLSN(metapg, recptr);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user