From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Properly initialize write, flush and replay locations in walsend
Date: Sun, 13 Dec 2015 16:02:07 +0000
Message-ID: <E1a8967-0003M3-CS@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: magnus@hagander.net
Subject: Re: pgsql: Properly initialize write, flush and replay locations in walsend
In-Reply-To: <E1a8967-0003M3-CS@gemulon.postgresql.org>
References: <E1a8967-0003M3-CS@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox