Avoid shadowing a variable in sync.c.

Thomas Munro <tmunro@postgresql.org>

Commit: 57944910585750b52173a0f67c9e0e42639f1c0a
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2022-07-14T12:06:32Z
Releases: 16.0
Avoid shadowing a variable in sync.c.

It was confusing to reuse the variable name 'entry' in two scopes.
Use distinct variable names.

Reported-by: Ranier Vilela <ranier.vf@gmail.com>
Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Reported-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/CAEudQArDrFyQ15Am3rgWBunGBVZFDb90onTS8SRiFAWHeiLiFA%40mail.gmail.com

Files

PathChange+/−
src/backend/storage/sync/sync.c modified +9 −9

Discussion