Skip to content
Permalink
Browse files
MDEV-29988: (spider fix) Major performance regression with 10.6.11
Make Item_direct_ref_to_item transparent for Spider
  • Loading branch information
sanja-byelkin authored and vuvova committed Jan 1, 2023
1 parent 37a316c commit 60f646e
Showing 1 changed file with 6 additions and 0 deletions.
@@ -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:

0 comments on commit 60f646e

Please sign in to comment.