]> granicus.if.org Git - postgresql/commit
Properly initialize write, flush and replay locations in walsender slots
authorMagnus Hagander <magnus@hagander.net>
Sun, 13 Dec 2015 15:40:37 +0000 (16:40 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sun, 13 Dec 2015 15:43:35 +0000 (16:43 +0100)
commita9c56ff0e1f19fd6c2e48cfe44407c8cb8c4fbd5
tree3879d26d3b1b0b60d225b32e01ef923637a353b1
parent332be65b5e6a99420dd9b2762fe3e5602538053d
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.
src/backend/replication/walsender.c