Commit 61c7bee
committed
Properly initialize write, flush and replay locations in walsender slots
These would leak random xlog positions if a walsender used for backup would
a walsender slot previously used by a replication walsender.
In passing also fix a couple of cases where the xlog pointer is directly
compared to zero instead of using XLogRecPtrIsInvalid, noted by
Michael Paquier.1 parent 6bdef13 commit 61c7bee
1 file changed
+6
-3
lines changed| 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