diff options
author | Monty <monty@mariadb.org> | 2021-05-26 22:07:20 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2021-05-26 22:17:51 +0300 |
commit | 9ec2129f715cee1550571e87dccb9686c80f3a98 (patch) | |
tree | 269cd2ed3656b5fb726c84414fefc8da194e8725 /mysql-test/lib | |
parent | 552bb1af7b651fb38d72823b46614ebaf92f0c3a (diff) | |
download | mariadb-git-9ec2129f715cee1550571e87dccb9686c80f3a98.tar.gz |
Fixed bug in mtr that caused restart to fail if mysqld died to fast
Diffstat (limited to 'mysql-test/lib')
-rw-r--r-- | mysql-test/lib/mtr_process.pl | 6 |
1 files changed, 3 insertions, 3 deletions
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 ) { |