forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3c5d000
committed
Fix incorrect logic for clearing BufferDirtiedByMe in ReleaseRelationBuffers
and DropBuffers. Formerly we cleared the flag for each buffer currentlybelonging to the target rel or database, but that's completely wrong!Must look at BufferTagLastDirtied to see whether the BufferDirtiedByMeflag is relevant to target rel or not; this is *independent* of thecurrent contents of the buffer. Vadim spotted this problem, but hisfix was only partially correct...1 parent5aeec4b commit3c5d000
1 file changed
+29
-10
lines changedLines changed: 29 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1567 | 1567 |
| |
1568 | 1568 |
| |
1569 | 1569 |
| |
1570 |
| - | |
1571 | 1570 |
| |
1572 | 1571 |
| |
1573 | 1572 |
| |
| |||
1594 | 1593 |
| |
1595 | 1594 |
| |
1596 | 1595 |
| |
1597 |
| - | |
1598 |
| - | |
1599 |
| - | |
1600 |
| - | |
1601 |
| - | |
| 1596 | + | |
| 1597 | + | |
1602 | 1598 |
| |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
1603 | 1613 |
| |
1604 | 1614 |
| |
1605 | 1615 |
| |
| |||
1652 | 1662 |
| |
1653 | 1663 |
| |
1654 | 1664 |
| |
1655 |
| - | |
1656 | 1665 |
| |
1657 | 1666 |
| |
1658 | 1667 |
| |
| |||
1667 | 1676 |
| |
1668 | 1677 |
| |
1669 | 1678 |
| |
1670 |
| - | |
1671 |
| - | |
1672 | 1679 |
| |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
1673 | 1692 |
| |
1674 | 1693 |
| |
1675 | 1694 |
| |
|
0 commit comments
Comments
(0)