mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-28 08:51:44 +00:00
t/pt-query-digest/issue_360.t: use --review-table
This commit is contained in:
@@ -34,11 +34,11 @@ else {
|
||||
my $pid_file = "/tmp/pt-query-digest-test-issue_360.t.$PID";
|
||||
|
||||
# Need a clean query review table.
|
||||
$sb->create_dbs($dbh, [qw(test)]);
|
||||
$sb->create_dbs($dbh, [qw(test percona_schema)]);
|
||||
|
||||
# Run pt-query-digest in the background for 2s,
|
||||
# saving queries to test.query_review.
|
||||
diag(`$trunk/bin/pt-query-digest --processlist h=127.1,P=12345,u=msandbox,p=msandbox --interval 0.01 --create-review-table --review h=127.1,P=12345,u=msandbox,p=msandbox,D=test,t=query_review --daemonize --pid $pid_file --log /dev/null --run-time 2`);
|
||||
diag(`$trunk/bin/pt-query-digest --processlist h=127.1,P=12345,u=msandbox,p=msandbox --interval 0.01 --create-review-table --review h=127.1,P=12345,u=msandbox,p=msandbox --review-table test.query_review --daemonize --pid $pid_file --log /dev/null --run-time 2`);
|
||||
|
||||
# Wait until its running.
|
||||
PerconaTest::wait_for_files($pid_file);
|
||||
|
Reference in New Issue
Block a user