From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove dead assignment to local variable.
Date: Mon, 12 Jul 2021 08:16:20 +0000
Message-ID: <E1m2r6y-0007B2-3u@gemulon.postgresql.org> (raw)
Remove dead assignment to local variable.
This should have been removed in commit 7e30c186da, which split the loop
into two. Only the first loop uses the 'from' variable; updating it in
the second loop is bogus. It was never read after the first loop, so this
was harmless and surely optimized away by the compiler, but let's be tidy.
Backpatch to all supported versions.
Author: Ranier Vilela
Discussion: https://www.postgresql.org/message-id/CAEudQAoWq%2BAL3BnELHu7gms2GN07k-np6yLbukGaxJ1vY-zeiQ%40mail.g...
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/2c27cc26592a3f4f6ad1300d976073a256c57c9b
Modified Files
--------------
src/backend/access/nbtree/nbtxlog.c | 1 -
1 file changed, 1 deletion(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: heikki.linnakangas@iki.fi
Subject: Re: pgsql: Remove dead assignment to local variable.
In-Reply-To: <E1m2r6y-0007B2-3u@gemulon.postgresql.org>
References: <E1m2r6y-0007B2-3u@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox