From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Refactor receivelog.c parameters
Date: Fri, 11 Mar 2016 10:16:00 +0000
Message-ID: <E1aeK6y-0005hF-44@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Refactor receivelog.c parameters
Much cruft had accumulated over time with a large number of parameters
passed down between functions very deep. With this refactoring, instead
introduce a StreamCtl structure that holds the parameters, and pass around
a pointer to this structure instead. This makes it much easier to add or
remove fields that are needed deeper down in the implementation without
having to modify every function header in the file.
Patch by me after much nagging from Andres
Reviewed by Craig Ringer and Daniel Gustafsson
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/38c83c9b7569378d864d8915e291716b8bec15f2
Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 18 +++-
src/bin/pg_basebackup/pg_receivexlog.c | 34 +++---
src/bin/pg_basebackup/receivelog.c | 187 ++++++++++++++-------------------
src/bin/pg_basebackup/receivelog.h | 33 ++++--
4 files changed, 136 insertions(+), 136 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: Refactor receivelog.c parameters
In-Reply-To: <E1aeK6y-0005hF-44@gemulon.postgresql.org>
References: <E1aeK6y-0005hF-44@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