Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug 1660255 (Test innodb.innodb_mysql is unstable)
The testcase creates a table with a secondary table, deletes all rows from it, and checks the query plan. The problem is that it expects a range access method, which it gets most of the time, because purge has not completed yet. However, sometimes purge completes before the query, and then the access method becomes ref, failing the testcase. If the testcase were stabilised by fully completing purge before the query, the access plan would be a stable ref method. But the goal of the testcase is to test specifically range optimiser, and specifically with a just-cleared table. To avoid making this a deterministic but a debug-only testcase, fix by removing EXPLAIN SELECT altogether, but leaving its SELECT, so that the absence of the crash is confirmed regardless of the query plan.
- Loading branch information