Remove unused variable in generate-lwlocknames.pl. master github/master
authorNathan Bossart <nathan@postgresql.org>
Fri, 18 Jul 2025 16:27:19 +0000 (11:27 -0500)
committerNathan Bossart <nathan@postgresql.org>
Fri, 18 Jul 2025 16:27:19 +0000 (11:27 -0500)
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

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

index 4441b7cba0c5fc87340fbff31ec967bfc3ce7ef1..c7a6720440db6ab4b816c38c0d804e55df78d269 100644 (file)
@@ -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",