Skip to content

Commit 7a1527c

Browse files
committed
Adjust perl style.
Per buildfarm member crake.
1 parent d60e61d commit 7a1527c

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/bin/pg_amcheck/t/003_check.pl

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Returns the filesystem path for the named relation.
1111
#
1212
# Assumes the test node is running
13-
sub relation_filepath($$)
13+
sub relation_filepath
1414
{
1515
my ($dbname, $relname) = @_;
1616

@@ -24,7 +24,7 @@ ($$)
2424
# Returns the name of the toast relation associated with the named relation.
2525
#
2626
# Assumes the test node is running
27-
sub relation_toast($$)
27+
sub relation_toast
2828
{
2929
my ($dbname, $relname) = @_;
3030

@@ -34,15 +34,14 @@ ($$)
3434
WHERE c.oid = '$relname'::regclass
3535
AND c.reltoastrelid != 0
3636
));
37-
return undef unless defined $rel;
3837
return $rel;
3938
}
4039

4140
# Adds the relation file for the given (dbname, relname) to the list
4241
# to be corrupted by means of overwriting junk in the first page.
4342
#
4443
# Assumes the test node is running.
45-
sub plan_to_corrupt_first_page($$)
44+
sub plan_to_corrupt_first_page
4645
{
4746
my ($dbname, $relname) = @_;
4847
my $relpath = relation_filepath($dbname, $relname);
@@ -53,7 +52,7 @@ ($$)
5352
# to be corrupted by means of removing the file..
5453
#
5554
# Assumes the test node is running
56-
sub plan_to_remove_relation_file($$)
55+
sub plan_to_remove_relation_file
5756
{
5857
my ($dbname, $relname) = @_;
5958
my $relpath = relation_filepath($dbname, $relname);
@@ -65,15 +64,15 @@ ($$)
6564
# corrupted by means of removing the file.
6665
#
6766
# Assumes the test node is running.
68-
sub plan_to_remove_toast_file($$)
67+
sub plan_to_remove_toast_file
6968
{
7069
my ($dbname, $relname) = @_;
7170
my $toastname = relation_toast($dbname, $relname);
7271
plan_to_remove_relation_file($dbname, $toastname) if ($toastname);
7372
}
7473

7574
# Corrupts the first page of the given file path
76-
sub corrupt_first_page($)
75+
sub corrupt_first_page
7776
{
7877
my ($relpath) = @_;
7978

src/bin/pg_amcheck/t/004_verify_heapam.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
# perl hash with named fields. These fields exactly match the ones understood
9393
# by write_tuple(), below. Returns a reference to this hash.
9494
#
95-
sub read_tuple ($$)
95+
sub read_tuple
9696
{
9797
my ($fh, $offset) = @_;
9898
my ($buffer, %tup);
@@ -145,7 +145,7 @@ ($$)
145145
# subset of fields modified. The function does no error checking. Use
146146
# cautiously.
147147
#
148-
sub write_tuple($$$)
148+
sub write_tuple
149149
{
150150
my ($fh, $offset, $tup) = @_;
151151
my $buffer = pack(HEAPTUPLE_PACK_CODE,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy