forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit61c7bee
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 parent6bdef13 commit61c7bee
1 file changed
+6
-3
lines changedLines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1957 | 1957 |
| |
1958 | 1958 |
| |
1959 | 1959 |
| |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
1960 | 1963 |
| |
1961 | 1964 |
| |
1962 | 1965 |
| |
| |||
2843 | 2846 |
| |
2844 | 2847 |
| |
2845 | 2848 |
| |
2846 |
| - | |
| 2849 | + | |
2847 | 2850 |
| |
2848 | 2851 |
| |
2849 | 2852 |
| |
2850 |
| - | |
| 2853 | + | |
2851 | 2854 |
| |
2852 | 2855 |
| |
2853 | 2856 |
| |
2854 |
| - | |
| 2857 | + | |
2855 | 2858 |
| |
2856 | 2859 |
| |
2857 | 2860 |
| |
|
0 commit comments
Comments
(0)