diff options
author | unknown <knielsen@ymer.(none)> | 2007-01-22 08:59:26 +0100 |
---|---|---|
committer | unknown <knielsen@ymer.(none)> | 2007-01-22 08:59:26 +0100 |
commit | fdb1dcae4e2144d1fbf83c78907082370912ae50 (patch) | |
tree | 8e27c569badb5f500f282f5ec34da950b1328c4c /mysql-test | |
parent | 74eac22e4e1d437191be8b9fc536071382330f2e (diff) | |
parent | e167d79e80ad1d9f235c25fb3be65cadaacc83a1 (diff) | |
download | mariadb-git-fdb1dcae4e2144d1fbf83c78907082370912ae50.tar.gz |
Merge ymer.(none):/usr/local/mysql/mysql-4.1-maint
into ymer.(none):/usr/local/mysql/x/mysql-5.0-maint
mysql-test/mysql-test-run.pl:
Auto merged
Diffstat (limited to 'mysql-test')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 83a440f5ec4..ca967655e06 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -309,6 +309,8 @@ our %mysqld_variables; my $source_dist= 0; +our $opt_max_save_core= 5; +my $num_saved_cores= 0; # Number of core files saved in vardir/log/ so far. ###################################################################### # @@ -569,6 +571,7 @@ sub command_line_setup () { 'strace-client' => \$opt_strace_client, 'master-binary=s' => \$exe_master_mysqld, 'slave-binary=s' => \$exe_slave_mysqld, + 'max-save-core=i' => \$opt_max_save_core, # Coverage, profiling etc 'gcov' => \$opt_gcov, @@ -3403,10 +3406,12 @@ sub save_files_before_restore($$) { # Look for core files foreach my $core_file ( glob("$data_dir/core*") ) { + last if $opt_max_save_core > 0 && $num_saved_cores >= $opt_max_save_core; my $core_name= basename($core_file); mtr_report("Saving $core_name"); mkdir($save_name) if ! -d $save_name; rename("$core_file", "$save_name/$core_name"); + ++$num_saved_cores; } } @@ -5001,6 +5006,9 @@ Options for debugging the product master-binary=PATH Specify the master "mysqld" to use slave-binary=PATH Specify the slave "mysqld" to use strace-client Create strace output for mysqltest client + max-save-core Limit the number of core files saved (to avoid filling + up disks for heavily crashing server). Defaults to + $opt_max_save_core, set to 0 for no limit. Options for coverage, profiling etc |