mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Added timing of bootstrap to mtr
This commit is contained in:
parent
5280af2b4e
commit
4f541c5f43
1 changed files with 6 additions and 0 deletions
|
@ -102,6 +102,7 @@ use mtr_unique;
|
|||
use mtr_results;
|
||||
use IO::Socket::INET;
|
||||
use IO::Select;
|
||||
use Time::HiRes qw(gettimeofday);
|
||||
|
||||
require "mtr_process.pl";
|
||||
require "mtr_io.pl";
|
||||
|
@ -3285,6 +3286,7 @@ sub mysql_install_db {
|
|||
# Create directories mysql and test
|
||||
mkpath("$install_datadir/mysql");
|
||||
|
||||
my $realtime= gettimeofday();
|
||||
if ( My::SafeProcess->run
|
||||
(
|
||||
name => "bootstrap",
|
||||
|
@ -3302,6 +3304,10 @@ sub mysql_install_db {
|
|||
"Could not install system database from $bootstrap_sql_file\n" .
|
||||
"The $path_bootstrap_log file contains:\n$data\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
mtr_verbose("Spent " . sprintf("%.3f", (gettimeofday() - $realtime)) . " seconds in bootstrap");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue