summaryrefslogtreecommitdiff
path: root/mysql-test/t/show_explain_ps.test
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2016-11-21 02:32:48 +0300
committerSergei Petrunia <psergey@askmonty.org>2016-11-21 02:32:48 +0300
commit58532f36d0354f03d4a5406d9a59f5b88ff536f1 (patch)
tree9cd2dd37e111a1758746c8c4cad57335b589c92e /mysql-test/t/show_explain_ps.test
parentf77bd5faf53fe89f3ad7fe53bb0cee44ddfb1cec (diff)
downloadmariadb-git-58532f36d0354f03d4a5406d9a59f5b88ff536f1.tar.gz
Update the testcase for MDEV-10330
Instead of restart_mysqld.inc, truncate the P_S tables that are used by the test. We don't want to query some irrelevant data.
Diffstat (limited to 'mysql-test/t/show_explain_ps.test')
-rw-r--r--mysql-test/t/show_explain_ps.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/mysql-test/t/show_explain_ps.test b/mysql-test/t/show_explain_ps.test
index e847abe3096..b43cd559e09 100644
--- a/mysql-test/t/show_explain_ps.test
+++ b/mysql-test/t/show_explain_ps.test
@@ -6,7 +6,10 @@
# Like all other perfschema tests, we don't work on embedded server:
--source include/not_embedded.inc
---source include/restart_mysqld.inc
+# There is a query below that selects from P_S tables.
+# Remove possible history that could confuse it
+truncate table performance_schema.events_statements_history_long;
+truncate table performance_schema.events_stages_history_long;
--disable_warnings
drop table if exists t0, t1;