mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
MDEV-28361 Spider: remove #ifdef SPIDER_ITEM_STRING_WITHOUT_SET_STR_WITH_COPY_AND_THDPTR
Reviewed by: Nayuta Yanagisawa
This commit is contained in:
parent
6b5a629ec3
commit
289b9e4155
4 changed files with 0 additions and 15 deletions
|
@ -996,13 +996,11 @@ int ha_spider::reset()
|
|||
{
|
||||
delete direct_aggregate_item_current->item;
|
||||
direct_aggregate_item_current->item = NULL;
|
||||
#ifdef SPIDER_ITEM_STRING_WITHOUT_SET_STR_WITH_COPY_AND_THDPTR
|
||||
if (direct_aggregate_item_current->init_mem_root)
|
||||
{
|
||||
free_root(&direct_aggregate_item_current->mem_root, MYF(0));
|
||||
direct_aggregate_item_current->init_mem_root = FALSE;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
direct_aggregate_item_current = direct_aggregate_item_current->next;
|
||||
}
|
||||
|
|
|
@ -2535,9 +2535,7 @@ int spider_db_fetch_for_item_sum_func(
|
|||
spider->direct_aggregate_item_first->next = NULL;
|
||||
spider->direct_aggregate_item_first->item = NULL;
|
||||
spider->direct_aggregate_item_first->tgt_num = 0;
|
||||
#ifdef SPIDER_ITEM_STRING_WITHOUT_SET_STR_WITH_COPY_AND_THDPTR
|
||||
spider->direct_aggregate_item_first->init_mem_root = FALSE;
|
||||
#endif
|
||||
}
|
||||
spider->direct_aggregate_item_current =
|
||||
spider->direct_aggregate_item_first;
|
||||
|
@ -2554,16 +2552,13 @@ int spider_db_fetch_for_item_sum_func(
|
|||
spider->direct_aggregate_item_current->next->item = NULL;
|
||||
spider->direct_aggregate_item_current->next->tgt_num =
|
||||
spider->direct_aggregate_item_current->tgt_num + 1;
|
||||
#ifdef SPIDER_ITEM_STRING_WITHOUT_SET_STR_WITH_COPY_AND_THDPTR
|
||||
spider->direct_aggregate_item_current->next->init_mem_root = FALSE;
|
||||
#endif
|
||||
}
|
||||
spider->direct_aggregate_item_current =
|
||||
spider->direct_aggregate_item_current->next;
|
||||
}
|
||||
if (!spider->direct_aggregate_item_current->item)
|
||||
{
|
||||
#ifdef SPIDER_ITEM_STRING_WITHOUT_SET_STR_WITH_COPY_AND_THDPTR
|
||||
if (!spider->direct_aggregate_item_current->init_mem_root)
|
||||
{
|
||||
SPD_INIT_ALLOC_ROOT(
|
||||
|
@ -2571,16 +2566,11 @@ int spider_db_fetch_for_item_sum_func(
|
|||
4096, 0, MYF(MY_WME));
|
||||
spider->direct_aggregate_item_current->init_mem_root = TRUE;
|
||||
}
|
||||
#endif
|
||||
Item *free_list = thd->free_list;
|
||||
spider->direct_aggregate_item_current->item =
|
||||
#ifdef SPIDER_ITEM_STRING_WITHOUT_SET_STR_WITH_COPY
|
||||
#ifdef SPIDER_ITEM_STRING_WITHOUT_SET_STR_WITH_COPY_AND_THDPTR
|
||||
new (&spider->direct_aggregate_item_current->mem_root)
|
||||
Item_string(thd, "", 0, share->access_charset);
|
||||
#else
|
||||
new Item_string("", 0, share->access_charset);
|
||||
#endif
|
||||
#else
|
||||
new Item_string(share->access_charset);
|
||||
#endif
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
#define SPIDER_HAS_TIME_STATUS
|
||||
#define SPIDER_HAS_DECIMAL_OPERATION_RESULTS_VALUE_TYPE
|
||||
#define SPIDER_ITEM_STRING_WITHOUT_SET_STR_WITH_COPY
|
||||
#define SPIDER_ITEM_STRING_WITHOUT_SET_STR_WITH_COPY_AND_THDPTR
|
||||
#define SPIDER_ORDER_HAS_ENUM_ORDER
|
||||
#define SPIDER_ITEM_GEOFUNC_NAME_HAS_MBR
|
||||
#define SPIDER_HANDLER_AUTO_REPAIR_HAS_ERROR
|
||||
|
|
|
@ -1239,10 +1239,8 @@ typedef struct st_spider_item_hld
|
|||
{
|
||||
uint tgt_num;
|
||||
Item *item;
|
||||
#ifdef SPIDER_ITEM_STRING_WITHOUT_SET_STR_WITH_COPY_AND_THDPTR
|
||||
bool init_mem_root;
|
||||
MEM_ROOT mem_root;
|
||||
#endif
|
||||
st_spider_item_hld *next;
|
||||
} SPIDER_ITEM_HLD;
|
||||
|
||||
|
|
Loading…
Reference in a new issue