forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8607fdf
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 parentd8a7cdd commit8607fdf
1 file changed
+6
-7
lines changedLines changed: 6 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1565 | 1565 |
| |
1566 | 1566 |
| |
1567 | 1567 |
| |
1568 |
| - | |
1569 | 1568 |
| |
1570 | 1569 |
| |
1571 | 1570 |
| |
| |||
1589 | 1588 |
| |
1590 | 1589 |
| |
1591 | 1590 |
| |
1592 |
| - | |
1593 |
| - | |
| 1591 | + | |
1594 | 1592 |
| |
1595 | 1593 |
| |
1596 |
| - | |
| 1594 | + | |
1597 | 1595 |
| |
1598 | 1596 |
| |
1599 | 1597 |
| |
| |||
1607 | 1605 |
| |
1608 | 1606 |
| |
1609 | 1607 |
| |
1610 |
| - | |
1611 | 1608 |
| |
1612 | 1609 |
| |
1613 | 1610 |
| |
| |||
1692 | 1689 |
| |
1693 | 1690 |
| |
1694 | 1691 |
| |
1695 |
| - | |
| 1692 | + | |
1696 | 1693 |
| |
1697 | 1694 |
| |
| 1695 | + | |
| 1696 | + | |
1698 | 1697 |
| |
1699 | 1698 |
| |
1700 | 1699 |
| |
| |||
1780 | 1779 |
| |
1781 | 1780 |
| |
1782 | 1781 |
| |
1783 |
| - | |
| 1782 | + | |
1784 | 1783 |
| |
1785 | 1784 |
| |
1786 | 1785 |
| |
|
0 commit comments
Comments
(0)