Skip to content

Commit 84409ed

Browse files
Remove unused variable in generate-lwlocknames.pl.
Oversight in commit da952b4. Author: Bertrand Drouvot <bertranddrouvot.pg@gmail.com> Discussion: https://postgr.es/m/aHpOgwuFQfcFMZ/B%40ip-10-97-1-34.eu-west-3.compute.internal
1 parent 161a3e8 commit 84409ed

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/backend/storage/lmgr/generate-lwlocknames.pl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
my $output_path = '.';
1111

1212
my $lastlockidx = -1;
13-
my $continue = "\n";
1413

1514
GetOptions('outdir:s' => \$output_path);
1615

@@ -102,10 +101,8 @@
102101
while ($lastlockidx < $lockidx - 1)
103102
{
104103
++$lastlockidx;
105-
$continue = ",\n";
106104
}
107105
$lastlockidx = $lockidx;
108-
$continue = ",\n";
109106

110107
# Add a "Lock" suffix to each lock name, as the C code depends on that
111108
printf $h "#define %-32s (&MainLWLockArray[$lockidx].lock)\n",

0 commit comments

Comments
 (0)