]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Rename the logical replication global "wrconn"
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 12 May 2021 23:13:54 +0000 (19:13 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 12 May 2021 23:13:54 +0000 (19:13 -0400)
commite5c071bc0f93c9c47821c876e36459580e08a68c
tree2badc58cd8b8aebb72eb57bb8c0a0afd7c17e434
parent834d9284b4fee413c74de3a143a072eb21c05772
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
src/backend/replication/logical/launcher.c
src/backend/replication/logical/tablesync.c
src/backend/replication/logical/worker.c
src/include/replication/worker_internal.h