pgsql: Properly initialize write, flush and replay locations in walsend - Mailing list pgsql-committers

From Magnus Hagander
Subject pgsql: Properly initialize write, flush and replay locations in walsend
Date
Msg-id E1a8967-0003M3-CS@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/263c19572bd4947b4cf977d61db11b74b1745570

Modified Files
--------------
src/backend/replication/walsender.c |    9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Doc: update external URLs for PostGIS project.
Next
From: Magnus Hagander
Date:
Subject: pgsql: Properly initialize write, flush and replay locations in walsend