From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: michael@paquier.xyz
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: A comment fix in xlogreader.c
Date: Tue, 01 Oct 2019 12:24:21 +0900 (Tokyo Standard Time)
Message-ID: <20191001.122421.77773804.horikyota.ntt@gmail.com> (raw)
In-Reply-To: <20190926025759.GB2115@paquier.xyz>
References: <20190926.110809.248342687.horikyota.ntt@gmail.com>
<20190926025759.GB2115@paquier.xyz>
At Thu, 26 Sep 2019 11:57:59 +0900, Michael Paquier <michael@paquier.xyz> wrote in <20190926025759.GB2115@paquier.xyz>
> On Thu, Sep 26, 2019 at 11:08:09AM +0900, Kyotaro Horiguchi wrote:
> > While rechecking another patch, I found that 709d003fbd forgot to
> > edit a comment mentioning three members removed from
> > XLogReaderState.
> >
> @@ -103,8 +103,7 @@ XLogReaderAllocate(int wal_segment_size, const char *waldir,
> state->read_page = pagereadfunc;
> /* system_identifier initialized to zeroes above */
> state->private_data = private_data;
> - /* ReadRecPtr and EndRecPtr initialized to zeroes above */
> - /* readSegNo, readOff, readLen, readPageTLI initialized to zeroes above */
> + /* ReadRecPtr, EndRecPtr and readLen initialized to zeroes above */
> state->errormsg_buf = palloc_extended(MAX_ERRORMSG_LEN + 1,
> MCXT_ALLOC_NO_OOM);
> if (!state->errormsg_buf)
>
> I see. readSegNo and readOff have been moved to WALOpenSegment and
> replaced by new, equivalent fields, still all those three fields are
> still initialized for the palloc_extended() call to allocate
> XLogReaderState, while the two others are now part of
> WALOpenSegmentInit(). Your change is correct, so applied.
Exactly. Thanks!
regards.
--
Kyotaro Horiguchi
NTT Open Source Software Center
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-hackers@postgresql.org
Cc: horikyota.ntt@gmail.com, michael@paquier.xyz
Subject: Re: A comment fix in xlogreader.c
In-Reply-To: <20191001.122421.77773804.horikyota.ntt@gmail.com>
References: <20190926.110809.248342687.horikyota.ntt@gmail.com> <20190926025759.GB2115@paquier.xyz> <20191001.122421.77773804.horikyota.ntt@gmail.com>
* 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