Commit 8c8684b1 authored by Yuchen Pei's avatar Yuchen Pei

MDEV-28226 Remove HANDLER_HAS_NEED_INFO_FOR_AUTO_INC

handler::need_info_for_auto_inc() was added in MDEV-7720 / MDEV-7726
in commit dc17ac16
parent affcb071
...@@ -7805,9 +7805,7 @@ int ha_spider::info( ...@@ -7805,9 +7805,7 @@ int ha_spider::info(
{ {
tmp_auto_increment_mode = spider_param_auto_increment_mode(thd, tmp_auto_increment_mode = spider_param_auto_increment_mode(thd,
share->auto_increment_mode); share->auto_increment_mode);
#ifdef HANDLER_HAS_NEED_INFO_FOR_AUTO_INC
info_auto_called = TRUE; info_auto_called = TRUE;
#endif
} }
if (!share->sts_init) if (!share->sts_init)
{ {
...@@ -8899,7 +8897,6 @@ uint8 ha_spider::table_cache_type() ...@@ -8899,7 +8897,6 @@ uint8 ha_spider::table_cache_type()
DBUG_RETURN(HA_CACHE_TBL_NOCACHE); DBUG_RETURN(HA_CACHE_TBL_NOCACHE);
} }
#ifdef HANDLER_HAS_NEED_INFO_FOR_AUTO_INC
bool ha_spider::need_info_for_auto_inc() bool ha_spider::need_info_for_auto_inc()
{ {
THD *thd = ha_thd(); THD *thd = ha_thd();
...@@ -8920,7 +8917,6 @@ bool ha_spider::need_info_for_auto_inc() ...@@ -8920,7 +8917,6 @@ bool ha_spider::need_info_for_auto_inc()
) )
)); ));
} }
#endif
bool ha_spider::can_use_for_auto_inc_init() bool ha_spider::can_use_for_auto_inc_init()
{ {
......
...@@ -147,9 +147,7 @@ class ha_spider final : public handler ...@@ -147,9 +147,7 @@ class ha_spider final : public handler
bool use_pre_action; bool use_pre_action;
bool pre_bitmap_checked; bool pre_bitmap_checked;
bool bulk_insert; bool bulk_insert;
#ifdef HANDLER_HAS_NEED_INFO_FOR_AUTO_INC
bool info_auto_called; bool info_auto_called;
#endif
bool auto_inc_temporary; bool auto_inc_temporary;
int bulk_size= 0; int bulk_size= 0;
int direct_dup_insert; int direct_dup_insert;
...@@ -453,9 +451,7 @@ class ha_spider final : public handler ...@@ -453,9 +451,7 @@ class ha_spider final : public handler
uint max_supported_key_length() const override; uint max_supported_key_length() const override;
uint max_supported_key_part_length() const override; uint max_supported_key_part_length() const override;
uint8 table_cache_type() override; uint8 table_cache_type() override;
#ifdef HANDLER_HAS_NEED_INFO_FOR_AUTO_INC
bool need_info_for_auto_inc() override; bool need_info_for_auto_inc() override;
#endif
bool can_use_for_auto_inc_init() override; bool can_use_for_auto_inc_init() override;
int update_auto_increment(); int update_auto_increment();
void get_auto_increment( void get_auto_increment(
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#define SPIDER_SUPPORT_CREATE_OR_REPLACE_TABLE #define SPIDER_SUPPORT_CREATE_OR_REPLACE_TABLE
#define HANDLER_HAS_DIRECT_AGGREGATE #define HANDLER_HAS_DIRECT_AGGREGATE
#define HANDLER_HAS_NEED_INFO_FOR_AUTO_INC
#define SPIDER_MDEV_16246 #define SPIDER_MDEV_16246
......
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