PT-1422 Improved MariaDB support in pt-mysql-summary

This commit is contained in:
Carlos Salguero
2018-07-30 14:45:00 -03:00
parent 909125faf9
commit d589034b31
3 changed files with 11 additions and 1 deletions

View File

@@ -1366,6 +1366,9 @@ summarize_processlist () {
} }
\$1 == \"Time:\" { \$1 == \"Time:\" {
t = \$2; t = \$2;
if ( t == \"NULL\" ) {
t = 0;
}
} }
\$1 == \"Command:\" { \$1 == \"Command:\" {
c = \$2; c = \$2;

View File

@@ -332,6 +332,9 @@ summarize_processlist () {
} }
\$1 == \"Time:\" { \$1 == \"Time:\" {
t = \$2; t = \$2;
if ( t == \"NULL\" ) {
t = 0;
}
} }
\$1 == \"Command:\" { \$1 == \"Command:\" {
c = \$2; c = \$2;

View File

@@ -87,9 +87,13 @@ like(
"InnoDB section present" "InnoDB section present"
); );
my $users_count = 2;
if ($ENV{FORK} eq 'mariadb') {
$users_count = 8;
}
like( like(
$out, $out,
qr/Users \| 2/, qr/Users \| $users_count/,
"Security works" "Security works"
); );