]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix variable shadowing in procarray.c.
authorFujii Masao <fujii@postgresql.org>
Thu, 16 Sep 2021 04:07:29 +0000 (13:07 +0900)
committerFujii Masao <fujii@postgresql.org>
Thu, 16 Sep 2021 04:08:06 +0000 (13:08 +0900)
commit8d28ec21f0c3b2defb94afd168efa0a1c60b1a2d
tree4d94230eaa972ba701b95fd4a35d27531c871e9a
parentdccffd9a274dfbf343008c4da8029ed8b1f35ea2
Fix variable shadowing in procarray.c.

ProcArrayGroupClearXid function has a parameter named "proc",
but the same name was used for its local variables. This commit fixes
this variable shadowing, to improve code readability.

Back-patch to all supported versions, to make future back-patching
easy though this patch is classified as refactoring only.

Reported-by: Ranier Vilela
Author: Ranier Vilela, Aleksander Alekseev
https://postgr.es/m/CAEudQAqyoTZC670xWi6w-Oe2_Bk1bfu2JzXz6xRfiOUzm7xbyQ@mail.gmail.com
src/backend/storage/ipc/procarray.c