Commit 60f646e2 authored by Oleksandr Byelkin's avatar Oleksandr Byelkin Committed by Sergei Golubchik

MDEV-29988: (spider fix) Major performance regression with 10.6.11

Make Item_direct_ref_to_item transparent for Spider
parent 37a316c0
...@@ -8853,6 +8853,12 @@ int spider_db_print_item_type( ...@@ -8853,6 +8853,12 @@ int spider_db_print_item_type(
DBUG_ENTER("spider_db_print_item_type"); DBUG_ENTER("spider_db_print_item_type");
DBUG_PRINT("info",("spider COND type=%d", 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()) switch (item->type())
{ {
case Item::FUNC_ITEM: case Item::FUNC_ITEM:
......
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