Merge pull request #664 from jmrenouard/master
Feature: option --feature allowing testing one part of MT at a time
This commit is contained in:
commit
08d92f3d68
1 changed files with 14 additions and 4 deletions
|
@ -111,6 +111,7 @@ my %opt = (
|
||||||
"defaults-extra-file" => '',
|
"defaults-extra-file" => '',
|
||||||
"protocol" => '',
|
"protocol" => '',
|
||||||
"dumpdir" => '',
|
"dumpdir" => '',
|
||||||
|
"feature" => '',
|
||||||
"stop" => 0,
|
"stop" => 0,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -144,7 +145,7 @@ GetOptions(
|
||||||
'idxstat', 'noidxstat',
|
'idxstat', 'noidxstat',
|
||||||
'server-log=s', 'protocol=s',
|
'server-log=s', 'protocol=s',
|
||||||
'defaults-extra-file=s', 'dumpdir=s',
|
'defaults-extra-file=s', 'dumpdir=s',
|
||||||
'stop'
|
'feature=s', 'stop'
|
||||||
)
|
)
|
||||||
or pod2usage(
|
or pod2usage(
|
||||||
-exitval => 1,
|
-exitval => 1,
|
||||||
|
@ -3928,7 +3929,7 @@ sub get_pf_memory {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Recommendations for Performance Schema
|
# Recommendations for Performance Schema
|
||||||
sub mysqsl_pfs {
|
sub mysql_pfs {
|
||||||
subheaderprint "Performance schema";
|
subheaderprint "Performance schema";
|
||||||
|
|
||||||
# Performance Schema
|
# Performance Schema
|
||||||
|
@ -6932,6 +6933,15 @@ debugprint "MySQL Admin FINAL Client : $mysqladmincmd $mysqllogin";
|
||||||
os_setup; # Set up some OS variables
|
os_setup; # Set up some OS variables
|
||||||
get_all_vars; # Toss variables/status into hashes
|
get_all_vars; # Toss variables/status into hashes
|
||||||
get_tuning_info; # Get information about the tuning connection
|
get_tuning_info; # Get information about the tuning connection
|
||||||
|
calculations; # Calculate everything we need
|
||||||
|
|
||||||
|
if ($opt{'feature'} ne '') {
|
||||||
|
subheaderprint "Running feature: $opt{'feature'}";
|
||||||
|
no strict 'refs';
|
||||||
|
my $feature=$opt{'feature'};
|
||||||
|
$feature->();
|
||||||
|
exit(0)
|
||||||
|
}
|
||||||
validate_mysql_version; # Check current MySQL version
|
validate_mysql_version; # Check current MySQL version
|
||||||
|
|
||||||
check_architecture; # Suggest 64-bit upgrade
|
check_architecture; # Suggest 64-bit upgrade
|
||||||
|
@ -6949,9 +6959,9 @@ mysql_triggers; # Show information about triggers
|
||||||
mysql_routines; # Show information about routines
|
mysql_routines; # Show information about routines
|
||||||
security_recommendations; # Display some security recommendations
|
security_recommendations; # Display some security recommendations
|
||||||
cve_recommendations; # Display related CVE
|
cve_recommendations; # Display related CVE
|
||||||
calculations; # Calculate everything we need
|
|
||||||
mysql_stats; # Print the server stats
|
mysql_stats; # Print the server stats
|
||||||
mysqsl_pfs; # Print Performance schema info
|
mysql_pfs; # Print Performance schema info
|
||||||
|
|
||||||
mariadb_threadpool; # Print MariaDB ThreadPool stats
|
mariadb_threadpool; # Print MariaDB ThreadPool stats
|
||||||
mysql_myisam; # Print MyISAM stats
|
mysql_myisam; # Print MyISAM stats
|
||||||
|
|
Loading…
Reference in a new issue