diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2022-12-14 14:36:27 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2023-01-02 00:04:03 +0100 |
commit | 60f646e2f3fefa7909538ca8982393b74a9bf5f2 (patch) | |
tree | 278af57443b96b24cf8f492d383a55f7fa4cf888 | |
parent | 37a316c01d778a62a056d5d20110ef18bb55975e (diff) | |
download | mariadb-git-60f646e2f3fefa7909538ca8982393b74a9bf5f2.tar.gz |
MDEV-29988: (spider fix) Major performance regression with 10.6.11
Make Item_direct_ref_to_item transparent for Spider
-rw-r--r-- | storage/spider/spd_db_conn.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/spider/spd_db_conn.cc b/storage/spider/spd_db_conn.cc index 5a8c7492654..6e377b482a4 100644 --- a/storage/spider/spd_db_conn.cc +++ b/storage/spider/spd_db_conn.cc @@ -8853,6 +8853,12 @@ int spider_db_print_item_type( DBUG_ENTER("spider_db_print_item_type"); DBUG_PRINT("info",("spider COND type=%d", item->type())); + if (item->type() == Item::REF_ITEM && + ((Item_ref*)item)->ref_type() == Item_ref::DIRECT_REF) + { + item= item->real_item(); + DBUG_PRINT("info",("spider new COND type=%d", item->type())); + } switch (item->type()) { case Item::FUNC_ITEM: |