Skip to content

Commit 0473733

Browse files
committed
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...
1 parent c395aad commit 0473733

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

storage/tokudb/ha_tokudb.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,12 @@ class ha_tokudb : public handler {
602602
// ICP introduced in MariaDB 5.5
603603
Item* idx_cond_push(uint keyno, class Item* idx_cond);
604604

605+
#ifdef MARIADB_BASE_VERSION
606+
void cancel_pushed_idx_cond()
607+
{
608+
invalidate_icp();
609+
}
610+
#endif
605611

606612
#if TOKU_INCLUDE_ALTER_56
607613
public:

0 commit comments

Comments
 (0)