From 9ec2129f715cee1550571e87dccb9686c80f3a98 Mon Sep 17 00:00:00 2001 From: Monty Date: Wed, 26 May 2021 22:07:20 +0300 Subject: Fixed bug in mtr that caused restart to fail if mysqld died to fast --- mysql-test/lib/mtr_process.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mysql-test/lib') diff --git a/mysql-test/lib/mtr_process.pl b/mysql-test/lib/mtr_process.pl index cee9f2b6ed6..7cadc5488a0 100644 --- a/mysql-test/lib/mtr_process.pl +++ b/mysql-test/lib/mtr_process.pl @@ -107,10 +107,10 @@ sub sleep_until_file_created ($$$$) { my $timeout= shift; my $proc= shift; my $warn_seconds = shift; - my $sleeptime= 100; # Milliseconds - my $loops= ($timeout * 1000) / $sleeptime; + my $sleeptime= 10; # Milliseconds + my $loops= ($timeout * 10000) / $sleeptime; - for ( my $loop= 1; $loop <= $loops; $loop++ ) + for ( my $loop= 0; $loop <= $loops; $loop++ ) { if ( -r $pidfile ) { -- cgit v1.2.1