pgsql: Put the logic to decide which synchronous standby is active into

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Put the logic to decide which synchronous standby is active into
Date: 2014-12-12 12:27:36
Message-ID: E1XzPJo-0002C4-2U@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Put the logic to decide which synchronous standby is active into a function.

This avoids duplicating the code.

Michael Paquier, reviewed by Simon Riggs and me

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/b1332e98c441b40300670f55a4303bf69cd8b226

Modified Files
--------------
src/backend/replication/syncrep.c | 88 ++++++++++++++++++++++++-----------
src/backend/replication/walsender.c | 52 ++++++---------------
src/include/replication/syncrep.h | 4 ++
3 files changed, 79 insertions(+), 65 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2014-12-12 14:02:00 pgsql: Add json_strip_nulls and jsonb_strip_nulls functions.
Previous Message Peter Eisentraut 2014-12-12 02:50:48 pgsql: doc: Move website-stylesheet setting to a more appropriate locat