]> 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:46:56 +0000 (16:46 +0100)
commit263c19572bd4947b4cf977d61db11b74b1745570
treeaf3b99b8847db95336220e9e6c043569500382be
parent6d96cd077bedcf822db7348bc564b44df8b2ab23
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