mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-12 22:19:44 +00:00
PT-1422 Improved MariaDB support in pt-mysql-summary
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
@@ -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"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user