Commit 04737330 authored by Sergei Petrunia's avatar Sergei Petrunia

MDEV-9860: TokuDB ORDER BY DESC query is slower in 10.1 with ICP ON

Implement ha_tokudb::cancel_pushed_idx_cond().

This is a conservative fix which follows the approach from the previous
patch for:
BUG#1000051: Query with simple join and ORDER BY takes thousands times...
parent c395aad6
...@@ -602,6 +602,12 @@ class ha_tokudb : public handler { ...@@ -602,6 +602,12 @@ class ha_tokudb : public handler {
// ICP introduced in MariaDB 5.5 // ICP introduced in MariaDB 5.5
Item* idx_cond_push(uint keyno, class Item* idx_cond); Item* idx_cond_push(uint keyno, class Item* idx_cond);
#ifdef MARIADB_BASE_VERSION
void cancel_pushed_idx_cond()
{
invalidate_icp();
}
#endif
#if TOKU_INCLUDE_ALTER_56 #if TOKU_INCLUDE_ALTER_56
public: public:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment