Fix variable shadowing in procarray.c.
authorFujii Masao <[email protected]>
Thu, 16 Sep 2021 04:06:21 +0000 (13:06 +0900)
committerFujii Masao <[email protected]>
Thu, 16 Sep 2021 04:07:10 +0000 (13:07 +0900)
commit92a8d7610ea0f440a80328ced342b782180a3f43
treec8795e02766c41651e63a0e5264d81133c7f4413
parentfe8821ca7da4bc1f72688cece0b7f2c3076d813d
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