t/pt-query-digest/issue_360.t: use --review-table

This commit is contained in:
Brian Fraser fraserb@gmail.com
2013-01-21 13:20:10 -03:00
parent 9dd124038b
commit 8c5d8e4d3d

View File

@@ -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);