- Notifications
You must be signed in to change notification settings - Fork5
Commitc73669c
committed
Fix WAL-logging of B-tree "unlink halfdead page" operation.
There was some confusion on how to record the case that the operationunlinks the last non-leaf page in the branch being deleted._bt_unlink_halfdead_page set the "topdead" field in the WAL record tothe leaf page, but the redo routine assumed that it would be an invalidblock number in that case. This commit fixes _bt_unlink_halfdead_page todo what the redo routine expected.This code is new in 9.4, so backpatch there.1 parent0f9692b commitc73669c
1 file changed
+6
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1567 | 1567 | | |
1568 | 1568 | | |
1569 | 1569 | | |
1570 | | - | |
1571 | 1570 | | |
1572 | 1571 | | |
1573 | 1572 | | |
| |||
1591 | 1590 | | |
1592 | 1591 | | |
1593 | 1592 | | |
1594 | | - | |
1595 | | - | |
| 1593 | + | |
1596 | 1594 | | |
1597 | 1595 | | |
1598 | | - | |
| 1596 | + | |
1599 | 1597 | | |
1600 | 1598 | | |
1601 | 1599 | | |
| |||
1609 | 1607 | | |
1610 | 1608 | | |
1611 | 1609 | | |
1612 | | - | |
1613 | 1610 | | |
1614 | 1611 | | |
1615 | 1612 | | |
| |||
1694 | 1691 | | |
1695 | 1692 | | |
1696 | 1693 | | |
1697 | | - | |
| 1694 | + | |
1698 | 1695 | | |
1699 | 1696 | | |
| 1697 | + | |
| 1698 | + | |
1700 | 1699 | | |
1701 | 1700 | | |
1702 | 1701 | | |
| |||
1782 | 1781 | | |
1783 | 1782 | | |
1784 | 1783 | | |
1785 | | - | |
| 1784 | + | |
1786 | 1785 | | |
1787 | 1786 | | |
1788 | 1787 | | |
| |||
0 commit comments
Comments
(0)