pgsql: Fix variable shadowing in procarray.c. - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: Fix variable shadowing in procarray.c.
Date
Msg-id E1mQik7-0000NW-Lu@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9b2cc7856c40f3558b787fb1e170d551860f3b99

Modified Files
--------------
src/backend/storage/ipc/procarray.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: Fix variable shadowing in procarray.c.
Next
From: Andres Freund
Date:
Subject: pgsql: Fix performance regression from session statistics.