]> git.ipfire.org Git - thirdparty/postgresql.git/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:52 +0000 (16:43 +0100)
commit61c7bee2196d284a19692d83b33eac7588693292
tree0901cc6240474c3303431695a248a78d817c2a64
parent6bdef1369f01d48107a7cde8bf2ca8e2d4fdb73e
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