mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fixed bug in mtr that caused restart to fail if mysqld died to fast
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user