summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2022-12-14 14:36:27 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2022-12-15 13:56:33 +0100
commit299dc10095667cc7f6e0a884f3b3512e788f0539 (patch)
tree20e7e6fde3c545bf5adf725775d91bd80efcb8e0
parentee773776e727345a9be7e07d15cd83fe9c441889 (diff)
downloadmariadb-git-bb-10.3-MDEV-29988.tar.gz
MDEV-29988: (spider fix) Major performance regression with 10.6.11bb-10.3-MDEV-29988
Make Item_direct_ref_to_item transparent for Spider
-rw-r--r--storage/spider/spd_db_conn.cc6
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: