Skip to content

Commit 4a09e74

Browse files
Merge branch '10.5' into 10.6
2 parents 02b3004 + a81f419 commit 4a09e74

26 files changed

+0
-1444
lines changed

storage/spider/ha_spider.cc

Lines changed: 0 additions & 260 deletions
Large diffs are not rendered by default.

storage/spider/ha_spider.h

Lines changed: 0 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,8 @@ class ha_spider final : public handler
147147
bool use_pre_action;
148148
bool pre_bitmap_checked;
149149
bool bulk_insert;
150-
#ifdef HANDLER_HAS_NEED_INFO_FOR_AUTO_INC
151150
bool info_auto_called;
152-
#endif
153-
#ifdef HANDLER_HAS_CAN_USE_FOR_AUTO_INC_INIT
154151
bool auto_inc_temporary;
155-
#endif
156152
int bulk_size= 0;
157153
int direct_dup_insert;
158154
int store_error_num;
@@ -175,21 +171,15 @@ class ha_spider final : public handler
175171
corresponding m_handler_cid is t00003
176172
*/
177173
char **m_handler_cid;
178-
#ifdef HANDLER_HAS_DIRECT_UPDATE_ROWS
179174
bool do_direct_update;
180175
uint direct_update_kinds;
181-
#endif
182176
spider_index_rnd_init prev_index_rnd_init;
183-
#ifdef HANDLER_HAS_DIRECT_AGGREGATE
184177
SPIDER_ITEM_HLD *direct_aggregate_item_first;
185178
SPIDER_ITEM_HLD *direct_aggregate_item_current;
186-
#endif
187179
ha_rows table_rows;
188-
#ifdef HA_HAS_CHECKSUM_EXTENDED
189180
ha_checksum checksum_val;
190181
bool checksum_null;
191182
uint action_flags;
192-
#endif
193183

194184
/* for fulltext search */
195185
bool ft_init_and_first;
@@ -436,10 +426,8 @@ class ha_spider final : public handler
436426
int check_crd();
437427
int pre_records() override;
438428
ha_rows records() override;
439-
#ifdef HA_HAS_CHECKSUM_EXTENDED
440429
int pre_calculate_checksum() override;
441430
int calculate_checksum() override;
442-
#endif
443431
const char *table_type() const override;
444432
ulonglong table_flags() const override;
445433
ulong table_flags_for_partition();
@@ -457,12 +445,8 @@ class ha_spider final : public handler
457445
uint max_supported_key_length() const override;
458446
uint max_supported_key_part_length() const override;
459447
uint8 table_cache_type() override;
460-
#ifdef HANDLER_HAS_NEED_INFO_FOR_AUTO_INC
461448
bool need_info_for_auto_inc() override;
462-
#endif
463-
#ifdef HANDLER_HAS_CAN_USE_FOR_AUTO_INC_INIT
464449
bool can_use_for_auto_inc_init() override;
465-
#endif
466450
int update_auto_increment();
467451
void get_auto_increment(
468452
ulonglong offset,
@@ -475,16 +459,10 @@ class ha_spider final : public handler
475459
ulonglong value
476460
) override;
477461
void release_auto_increment() override;
478-
#ifdef SPIDER_HANDLER_START_BULK_INSERT_HAS_FLAGS
479462
void start_bulk_insert(
480463
ha_rows rows,
481464
uint flags
482465
) override;
483-
#else
484-
void start_bulk_insert(
485-
ha_rows rows
486-
);
487-
#endif
488466
int end_bulk_insert() override;
489467
int write_row(
490468
const uchar *buf
@@ -494,18 +472,15 @@ class ha_spider final : public handler
494472
uchar *buf
495473
);
496474
#endif
497-
#ifdef HANDLER_HAS_DIRECT_UPDATE_ROWS
498475
void direct_update_init(
499476
THD *thd,
500477
bool hs_request
501478
);
502-
#endif
503479
bool start_bulk_update() override;
504480
int exec_bulk_update(
505481
ha_rows *dup_key_found
506482
) override;
507483
int end_bulk_update() override;
508-
#ifdef SPIDER_UPDATE_ROW_HAS_CONST_NEW_DATA
509484
int bulk_update_row(
510485
const uchar *old_data,
511486
const uchar *new_data,
@@ -515,25 +490,12 @@ class ha_spider final : public handler
515490
const uchar *old_data,
516491
const uchar *new_data
517492
) override;
518-
#else
519-
int bulk_update_row(
520-
const uchar *old_data,
521-
uchar *new_data,
522-
ha_rows *dup_key_found
523-
);
524-
int update_row(
525-
const uchar *old_data,
526-
uchar *new_data
527-
);
528-
#endif
529-
#ifdef HANDLER_HAS_DIRECT_UPDATE_ROWS
530493
bool check_direct_update_sql_part(
531494
st_select_lex *select_lex,
532495
longlong select_limit,
533496
longlong offset_limit
534497
);
535498
#ifdef HANDLER_HAS_DIRECT_UPDATE_ROWS_WITH_HS
536-
#ifdef SPIDER_MDEV_16246
537499
inline int direct_update_rows_init(
538500
List<Item> *update_fields
539501
) {
@@ -548,30 +510,12 @@ class ha_spider final : public handler
548510
uchar *new_data
549511
);
550512
#else
551-
inline int direct_update_rows_init()
552-
{
553-
return direct_update_rows_init(2, NULL, 0, FALSE, NULL);
554-
}
555-
int direct_update_rows_init(
556-
uint mode,
557-
KEY_MULTI_RANGE *ranges,
558-
uint range_count,
559-
bool sorted,
560-
uchar *new_data
561-
);
562-
#endif
563-
#else
564-
#ifdef SPIDER_MDEV_16246
565513
int direct_update_rows_init(
566514
List<Item> *update_fields
567515
) override;
568-
#else
569-
int direct_update_rows_init();
570-
#endif
571516
#endif
572517
#ifdef HA_CAN_BULK_ACCESS
573518
#ifdef HANDLER_HAS_DIRECT_UPDATE_ROWS_WITH_HS
574-
#ifdef SPIDER_MDEV_16246
575519
inline int pre_direct_update_rows_init(
576520
List<Item> *update_fields
577521
) {
@@ -586,26 +530,9 @@ class ha_spider final : public handler
586530
uchar *new_data
587531
);
588532
#else
589-
inline int pre_direct_update_rows_init()
590-
{
591-
return pre_direct_update_rows_init(2, NULL, 0, FALSE, NULL);
592-
}
593-
int pre_direct_update_rows_init(
594-
uint mode,
595-
KEY_MULTI_RANGE *ranges,
596-
uint range_count,
597-
bool sorted,
598-
uchar *new_data
599-
);
600-
#endif
601-
#else
602-
#ifdef SPIDER_MDEV_16246
603533
int pre_direct_update_rows_init(
604534
List<Item> *update_fields
605535
);
606-
#else
607-
int pre_direct_update_rows_init();
608-
#endif
609536
#endif
610537
#endif
611538
#ifdef HANDLER_HAS_DIRECT_UPDATE_ROWS_WITH_HS
@@ -648,14 +575,12 @@ class ha_spider final : public handler
648575
#else
649576
int pre_direct_update_rows();
650577
#endif
651-
#endif
652578
#endif
653579
bool start_bulk_delete() override;
654580
int end_bulk_delete() override;
655581
int delete_row(
656582
const uchar *buf
657583
) override;
658-
#ifdef HANDLER_HAS_DIRECT_UPDATE_ROWS
659584
bool check_direct_delete_sql_part(
660585
st_select_lex *select_lex,
661586
longlong select_limit,
@@ -724,7 +649,6 @@ class ha_spider final : public handler
724649
#else
725650
int pre_direct_delete_rows();
726651
#endif
727-
#endif
728652
#endif
729653
int delete_all_rows() override;
730654
int truncate() override;
@@ -808,9 +732,7 @@ class ha_spider final : public handler
808732
uint info_type,
809733
void *info
810734
) override;
811-
#ifdef HANDLER_HAS_DIRECT_AGGREGATE
812735
void return_record_by_parent() override;
813-
#endif
814736
TABLE *get_table();
815737
void set_ft_discard_bitmap();
816738
void set_searched_bitmap();
@@ -895,9 +817,7 @@ class ha_spider final : public handler
895817
void check_pre_call(
896818
bool use_parallel
897819
);
898-
#ifdef HANDLER_HAS_DIRECT_UPDATE_ROWS
899820
void check_insert_dup_update_pushdown();
900-
#endif
901821
#ifdef HA_CAN_BULK_ACCESS
902822
SPIDER_BULK_ACCESS_LINK *create_bulk_access_link();
903823
void delete_bulk_access_link(
@@ -926,10 +846,7 @@ class ha_spider final : public handler
926846
int append_insert_sql_part();
927847
int append_update_sql_part();
928848
int append_update_set_sql_part();
929-
#ifdef HANDLER_HAS_DIRECT_UPDATE_ROWS
930849
int append_direct_update_set_sql_part();
931-
#endif
932-
#ifdef HANDLER_HAS_DIRECT_UPDATE_ROWS
933850
int append_dup_update_pushdown_sql_part(
934851
const char *alias,
935852
uint alias_length
@@ -939,7 +856,6 @@ class ha_spider final : public handler
939856
uint alias_length
940857
);
941858
int check_update_columns_sql_part();
942-
#endif
943859
int append_delete_sql_part();
944860
int append_select_sql_part(
945861
ulong sql_type
@@ -1003,13 +919,11 @@ class ha_spider final : public handler
1003919
ulong sql_type,
1004920
bool test_flg
1005921
);
1006-
#ifdef HANDLER_HAS_DIRECT_AGGREGATE
1007922
int append_sum_select_sql_part(
1008923
ulong sql_type,
1009924
const char *alias,
1010925
uint alias_length
1011926
);
1012-
#endif
1013927
int append_match_select_sql_part(
1014928
ulong sql_type,
1015929
const char *alias,
@@ -1021,13 +935,11 @@ class ha_spider final : public handler
1021935
void set_order_to_pos_sql(
1022936
ulong sql_type
1023937
);
1024-
#ifdef HANDLER_HAS_DIRECT_AGGREGATE
1025938
int append_group_by_sql_part(
1026939
const char *alias,
1027940
uint alias_length,
1028941
ulong sql_type
1029942
);
1030-
#endif
1031943
int append_key_order_for_merge_with_alias_sql_part(
1032944
const char *alias,
1033945
uint alias_length,

0 commit comments

Comments
 (0)