pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
A comment fix in xlogreader.c
3+ messages / 2 participants
[nested] [flat]

Commits from this thread:
  2019-09-26 6e22813b2d  Fix comment in xlogreader.c
* A comment fix in xlogreader.c
@ 2019-09-26 02:08  Kyotaro Horiguchi <horikyota.ntt@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Kyotaro Horiguchi @ 2019-09-26 02:08 UTC (permalink / raw)
  To: pgsql-hackers@lists.postgresql.org

While rechecking another patch, I found that 709d003fbd forgot to
edit a comment mentioning three members removed from
XLogReaderState.

See the attached.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center

Attachments:

remove_comment_about_removed_variables.patch (text/x-patch, 761B) download diff --git a/src/backend/access/transam/xlogreader.c b/src/backend/access/transam/xlogreader.c index 27c27303d6..c8b0d2303d 100644 --- a/src/backend/access/transam/xlogreader.c +++ b/src/backend/access/transam/xlogreader.c @@ -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)
^ permalink raw reply [nested|flat] 3+ messages in thread

* Re: A comment fix in xlogreader.c
@ 2019-09-26 02:57  Michael Paquier <michael@paquier.xyz>
  parent: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Michael Paquier @ 2019-09-26 02:57 UTC (permalink / raw)
  To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>; +Cc: pgsql-hackers@lists.postgresql.org

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.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: A comment fix in xlogreader.c
@ 2019-10-01 03:24  Kyotaro Horiguchi <horikyota.ntt@gmail.com>
  parent: Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 3+ messages in thread

From: Kyotaro Horiguchi @ 2019-10-01 03:24 UTC (permalink / raw)
  To: michael@paquier.xyz; +Cc: pgsql-hackers@lists.postgresql.org

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





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-10-01 03:24 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-09-26 02:08 A comment fix in xlogreader.c Kyotaro Horiguchi <horikyota.ntt@gmail.com>
2019-09-26 02:57 ` Michael Paquier <michael@paquier.xyz>
2019-10-01 03:24   ` Kyotaro Horiguchi <horikyota.ntt@gmail.com>

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