aboutsummaryrefslogtreecommitdiff
path: root/src/test/perl/PostgreSQL/Test/BackgroundPsql.pm
diff options
context:
space:
mode:
authorMasahiko Sawada <msawada@postgresql.org>2023-11-30 10:14:26 +0900
committerMasahiko Sawada <msawada@postgresql.org>2023-11-30 10:14:26 +0900
commitc684d7c80f5cb60d2c67a42ef4568dbc121fed6e (patch)
treed9ac4e467fc54a3ff982489ca042e4cad3132e88 /src/test/perl/PostgreSQL/Test/BackgroundPsql.pm
parentefa8f606402c3d7ca361932418cbcc2600b6c059 (diff)
downloadpostgresql-c684d7c80f5cb60d2c67a42ef4568dbc121fed6e.tar.gz
postgresql-c684d7c80f5cb60d2c67a42ef4568dbc121fed6e.zip
Fix BackgroundPsql's set_query_timer_restart() issue without argument.
The set_query_timer_restart() required an argument to define a value to query_timer_restart, but none of the existing callers passes an argument to this function. This changes the function to set a value without an argument. Backpatch through 16 where the background psql TAP functions were refactored by 664d757531e1. Reviewed-by: Bharath Rupireddy, Tom Lane Discussion: https://postgr.es/m/CAD21AoA0B6VKe_5A9nZi8i5umwSN-zJJuPVNht9DaOZ9SJumMA@mail.gmail.com Backpatch-through: 16
Diffstat (limited to 'src/test/perl/PostgreSQL/Test/BackgroundPsql.pm')
-rw-r--r--src/test/perl/PostgreSQL/Test/BackgroundPsql.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/perl/PostgreSQL/Test/BackgroundPsql.pm b/src/test/perl/PostgreSQL/Test/BackgroundPsql.pm
index 924b57ab218..764f0a53801 100644
--- a/src/test/perl/PostgreSQL/Test/BackgroundPsql.pm
+++ b/src/test/perl/PostgreSQL/Test/BackgroundPsql.pm
@@ -301,7 +301,7 @@ sub set_query_timer_restart
{
my $self = shift;
- $self->{query_timer_restart} = shift if @_;
+ $self->{query_timer_restart} = 1;
return $self->{query_timer_restart};
}