forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit263c195
committed
Properly initialize write, flush and replay locations in walsender slots
These would leak random xlog positions if a walsender used for backup woulda walsender slot previously used by a replication walsender.In passing also fix a couple of cases where the xlog pointer is directlycompared to zero instead of using XLogRecPtrIsInvalid, noted byMichael Paquier.1 parent6d96cd0 commit263c195
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1962 | 1962 |
| |
1963 | 1963 |
| |
1964 | 1964 |
| |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
1965 | 1968 |
| |
1966 | 1969 |
| |
1967 | 1970 |
| |
| |||
2821 | 2824 |
| |
2822 | 2825 |
| |
2823 | 2826 |
| |
2824 |
| - | |
| 2827 | + | |
2825 | 2828 |
| |
2826 | 2829 |
| |
2827 | 2830 |
| |
2828 |
| - | |
| 2831 | + | |
2829 | 2832 |
| |
2830 | 2833 |
| |
2831 | 2834 |
| |
2832 |
| - | |
| 2835 | + | |
2833 | 2836 |
| |
2834 | 2837 |
| |
2835 | 2838 |
| |
|
0 commit comments
Comments
(0)