From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Be more consistent about masking xl_info with ~XLR_INFO_MASK.
Date: Fri, 04 Nov 2016 17:26:57 +0000
Message-ID: <E1c2iGX-0003du-DT@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Be more consistent about masking xl_info with ~XLR_INFO_MASK.
Generally, WAL resource managers are only supposed to examine the
top 4 bits of a WAL record's xl_info; the rest are reserved for
the WAL mechanism itself. A few places were not consistent about
doing this with respect to XLOG_CHECKPOINT and XLOG_SWITCH records.
There's no bug currently, since no additional bits ever get set in
these specific record types, but that might not be true forever.
Let's follow the generic coding rule here too.
Michael Paquier
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/d5f6f13f8e7eb1c28395807922246294da4f57bb
Modified Files
--------------
src/backend/access/transam/xlog.c | 13 ++++++++-----
src/backend/access/transam/xlogreader.c | 3 ++-
2 files changed, 10 insertions(+), 6 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: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Be more consistent about masking xl_info with ~XLR_INFO_MASK.
In-Reply-To: <E1c2iGX-0003du-DT@gemulon.postgresql.org>
References: <E1c2iGX-0003du-DT@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