Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7a1527c

Browse files
committed
Adjust perl style.
Per buildfarm member crake.
1 parentd60e61d commit7a1527c

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-
subrelation_filepath($$)
13+
subrelation_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-
subrelation_toast($$)
27+
subrelation_toast
2828
{
2929
my ($dbname,$relname) =@_;
3030

@@ -34,15 +34,14 @@ ($$)
3434
WHERE c.oid = '$relname'::regclass
3535
AND c.reltoastrelid != 0
3636
));
37-
returnundefunlessdefined$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-
subplan_to_corrupt_first_page($$)
44+
subplan_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-
subplan_to_remove_relation_file($$)
55+
subplan_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-
subplan_to_remove_toast_file($$)
67+
subplan_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-
subcorrupt_first_page($)
75+
subcorrupt_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-
subread_tuple ($$)
95+
subread_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-
subwrite_tuple($$$)
148+
subwrite_tuple
149149
{
150150
my ($fh,$offset,$tup) =@_;
151151
my$buffer =pack(HEAPTUPLE_PACK_CODE,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp