mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
feedback plugin debug
make it possible to change feedback plugin wait intervals * only in debug builds * and force the feedback report to be ignored update the test to use this feature
This commit is contained in:
@@ -25,20 +25,15 @@ sleep 310;
|
||||
--let $shutdown_timeout= 60
|
||||
source include/restart_mysqld.inc;
|
||||
|
||||
replace_result https http;
|
||||
replace_result https http 2 6;
|
||||
perl;
|
||||
$log_error= $ENV{'MYSQLTEST_VARDIR'} . '/log/mysqld.1.err';
|
||||
open(LOG, '<', $log_error) or die "open(< $log_error): $!";
|
||||
|
||||
# Get the first few rows (as there may be different number rows in the log)
|
||||
$i= 0;
|
||||
while ($_=<LOG>)
|
||||
{
|
||||
if (/feedback plugin:.*/)
|
||||
{
|
||||
print "$&\n";
|
||||
break if ($i++ >= 3);
|
||||
}
|
||||
%logg=();
|
||||
while ($_=<LOG>) {
|
||||
$logg{$&}++ if /feedback plugin:.*/;
|
||||
}
|
||||
print "$logg{$_}: $_\n" for sort keys %logg;
|
||||
close LOG;
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user