Fix some shadow variables in src/backend/replication/
commitb5934bfd6071fed3a38cea0cfaa93afda63d9c0c
authorMichael Paquier <michael@paquier.xyz>
Wed, 30 Aug 2023 23:07:48 +0000 (31 08:07 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 30 Aug 2023 23:07:48 +0000 (31 08:07 +0900)
tree8a51a96f61699f0318315ccc89cef39f6866f2b5
parentd0fe3046eec3913829ccd5010849b25acd25fce4
Fix some shadow variables in src/backend/replication/

The code is able to compile already without warnings under
-Wshadow=compatible-local, which is itself already enabled in the tree,
and the ones fixed here showed up with the more restrictive -Wshadow.

There are more of these that we may want to look at, and the ones fixed
here made the code confusing.

Author: Peter Smith
Discussion: https://postgr.es/m/CAHut+PuR0y4ofNOxi691VTVWmBfScHV9AaBMGSpeh8+DKp81Nw@mail.gmail.com
src/backend/replication/logical/logicalfuncs.c
src/backend/replication/logical/reorderbuffer.c
src/backend/replication/walsender.c