diff options
author | Kentoku SHIBA <kentokushiba@gmail.com> | 2019-06-11 00:25:08 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-11 00:25:08 +0900 |
commit | be5c432a42eed10535354f31dfd6daa07095e555 (patch) | |
tree | ad091eebd8127ab3506511588c33146c5308e8c0 /storage/spider/ha_spider.h | |
parent | 5e9090ef161e9e083e7059439246e5e2ef1718e4 (diff) | |
download | mariadb-git-be5c432a42eed10535354f31dfd6daa07095e555.tar.gz |
MDEV-16249 CHECKSUM TABLE for a spider table is not parallel and saves all data in memory in the spider head by default (#1328)
add checksum_null for setting null value of checksum
Diffstat (limited to 'storage/spider/ha_spider.h')
-rw-r--r-- | storage/spider/ha_spider.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/storage/spider/ha_spider.h b/storage/spider/ha_spider.h index 9ffe49754e8..6ac71254b12 100644 --- a/storage/spider/ha_spider.h +++ b/storage/spider/ha_spider.h @@ -1,4 +1,5 @@ -/* Copyright (C) 2008-2018 Kentoku Shiba +/* Copyright (C) 2008-2019 Kentoku Shiba + Copyright (C) 2019 MariaDB corp This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -170,7 +171,7 @@ public: bool high_priority; bool insert_delayed; bool use_pre_call; - bool use_pre_records; + bool use_pre_action; bool pre_bitmap_checked; enum thr_lock_type lock_type; int lock_mode; @@ -243,6 +244,11 @@ public: SPIDER_ITEM_HLD *direct_aggregate_item_current; #endif ha_rows table_rows; +#ifdef HA_HAS_CHECKSUM_EXTENDED + ulonglong checksum_val; + bool checksum_null; + uint action_flags; +#endif /* for fulltext search */ bool ft_init_and_first; @@ -512,6 +518,10 @@ public: int check_crd(); int pre_records(); ha_rows records(); +#ifdef HA_HAS_CHECKSUM_EXTENDED + int pre_calculate_checksum(); + int calculate_checksum(); +#endif const char *table_type() const; ulonglong table_flags() const; const char *index_type( |