pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Rename the logical replication global "wrconn"
Date: Wed, 12 May 2021 23:19:15 +0000
Message-ID: <E1lgy8J-0000Nl-SK@gemulon.postgresql.org> (raw)

Rename the logical replication global "wrconn"

The worker.c global wrconn is only meant to be used by logical apply/
tablesync workers, but there are other variables with the same name. To
reduce future confusion rename the global from "wrconn" to
"LogRepWorkerWalRcvConn".

While this is just cosmetic, it seems better to backpatch it all the way
back to 10 where this code appeared, to avoid future backpatching
issues.

Author: Peter Smith <smithpb2250@gmail.com>
Discussion: https://postgr.es/m/CAHut+Pu7Jv9L2BOEx_Z0UtJxfDevQSAUW2mJqWU+CtmDrEZVAg@mail.gmail.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6e9723cde5c672bb55ed803fc42720d0a46ce03c

Modified Files
--------------
src/backend/replication/logical/launcher.c  |  4 ++--
src/backend/replication/logical/tablesync.c | 26 +++++++++++++++-----------
src/backend/replication/logical/worker.c    | 22 +++++++++++-----------
src/include/replication/worker_internal.h   |  2 +-
4 files changed, 29 insertions(+), 25 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1lgy8J-0000Nl-SK@gemulon.postgresql.org>
Permalink:  ../E1lgy8J-0000Nl-SK@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lgy8J-0000Nl-SK@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Rename the logical replication global "wrconn"
  In-Reply-To: <E1lgy8J-0000Nl-SK@gemulon.postgresql.org>
  References: <E1lgy8J-0000Nl-SK@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