aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2025-07-18 11:27:19 -0500
committerNathan Bossart <nathan@postgresql.org>2025-07-18 11:27:19 -0500
commit84409ed640568d8ccaaf1df1a41fb02f37d026ed (patch)
treec1014525e51d1e53cf1c625eeb4ab1df802f332d /src
parent161a3e8b682ebb98ea0b9d5015d22990696b99ec (diff)
downloadpostgresql-84409ed640568d8ccaaf1df1a41fb02f37d026ed.tar.gz
postgresql-84409ed640568d8ccaaf1df1a41fb02f37d026ed.zip
Remove unused variable in generate-lwlocknames.pl.
Oversight in commit da952b415f. Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://postgr.es/m/aHpOgwuFQfcFMZ/B%40ip-10-97-1-34.eu-west-3.compute.internal
Diffstat (limited to 'src')
-rw-r--r--src/backend/storage/lmgr/generate-lwlocknames.pl3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/backend/storage/lmgr/generate-lwlocknames.pl b/src/backend/storage/lmgr/generate-lwlocknames.pl
index 4441b7cba0c..c7a6720440d 100644
--- a/src/backend/storage/lmgr/generate-lwlocknames.pl
+++ b/src/backend/storage/lmgr/generate-lwlocknames.pl
@@ -10,7 +10,6 @@ use Getopt::Long;
my $output_path = '.';
my $lastlockidx = -1;
-my $continue = "\n";
GetOptions('outdir:s' => \$output_path);
@@ -102,10 +101,8 @@ while (<$lwlocklist>)
while ($lastlockidx < $lockidx - 1)
{
++$lastlockidx;
- $continue = ",\n";
}
$lastlockidx = $lockidx;
- $continue = ",\n";
# Add a "Lock" suffix to each lock name, as the C code depends on that
printf $h "#define %-32s (&MainLWLockArray[$lockidx].lock)\n",