forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit86e3364
committed
Derive oldestActiveXid at correct time for Hot Standby.
There was a timing window between when oldestActiveXid was derivedand when it should have been derived that only shows itself underheavy load. Move code around to ensure correct timing of derivation.No change to StartupSUBTRANS() code, which is where this failed.Bug report by Chris Redekop1 parent10b7c68 commit86e3364
File tree
5 files changed
+71
-6
lines changed- src
- backend
- access/transam
- storage/ipc
- include/storage
5 files changed
+71
-6
lines changedLines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7636 | 7636 |
| |
7637 | 7637 |
| |
7638 | 7638 |
| |
| 7639 | + | |
| 7640 | + | |
| 7641 | + | |
| 7642 | + | |
| 7643 | + | |
| 7644 | + | |
| 7645 | + | |
| 7646 | + | |
| 7647 | + | |
| 7648 | + | |
7639 | 7649 |
| |
7640 | 7650 |
| |
7641 | 7651 |
| |
| |||
7822 | 7832 |
| |
7823 | 7833 |
| |
7824 | 7834 |
| |
7825 |
| - | |
7826 |
| - | |
7827 |
| - | |
| 7835 | + | |
7828 | 7836 |
| |
7829 | 7837 |
| |
7830 | 7838 |
| |
|
Lines changed: 57 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1620 | 1620 |
| |
1621 | 1621 |
| |
1622 | 1622 |
| |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
| 1663 | + | |
| 1664 | + | |
| 1665 | + | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
1623 | 1680 |
| |
1624 | 1681 |
| |
1625 | 1682 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
815 | 815 |
| |
816 | 816 |
| |
817 | 817 |
| |
818 |
| - | |
| 818 | + | |
819 | 819 |
| |
820 | 820 |
| |
821 | 821 |
| |
| |||
845 | 845 |
| |
846 | 846 |
| |
847 | 847 |
| |
848 |
| - | |
849 | 848 |
| |
850 | 849 |
| |
851 | 850 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
114 |
| - | |
| 114 | + | |
115 | 115 |
| |
116 | 116 |
|
0 commit comments
Comments
(0)