pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix CRC check handling in get_controlfile
Date: Wed, 28 Sep 2016 16:37:59 +0000
Message-ID: <E1bpHrr-00013s-Us@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Fix CRC check handling in get_controlfile

The previous patch broke this by returning NULL for a failed CRC check,
which pg_controldata would then try to read.  Fix by returning the
result of the CRC check in a separate argument.

Michael Paquier and myself

Branch
------
master

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

Modified Files
--------------
src/backend/utils/misc/pg_controldata.c | 20 ++++++++++++--------
src/bin/pg_controldata/pg_controldata.c |  5 +++--
src/bin/pg_ctl/pg_ctl.c                 | 24 +++++++-----------------
src/common/controldata_utils.c          | 19 +++++++++----------
src/include/common/controldata_utils.h  |  2 +-
5 files changed, 32 insertions(+), 38 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1bpHrr-00013s-Us@gemulon.postgresql.org>
Permalink:  ../E1bpHrr-00013s-Us@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1bpHrr-00013s-Us@gemulon.postgresql.org

 · 

reply

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: peter_e@gmx.net
  Subject: Re: pgsql: Fix CRC check handling in get_controlfile
  In-Reply-To: <E1bpHrr-00013s-Us@gemulon.postgresql.org>
  References: <E1bpHrr-00013s-Us@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