diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-05-02 13:09:27 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-05-07 18:40:36 +0200 |
commit | ffb83ba65026e2af547b44601c4894437e4f031c (patch) | |
tree | 02c7c81c6ffb615514048b8613e067668d0cac27 /sql/handler.h | |
parent | 651a43e0a0361098c35164a128ca588a2989d8e1 (diff) | |
download | mariadb-git-ffb83ba65026e2af547b44601c4894437e4f031c.tar.gz |
cleanup: move checksum code to handler class
make live checksum to be returned in handler::info(),
and slow table-scan checksum to be calculated in handler::checksum().
part of
MDEV-16249 CHECKSUM TABLE for a spider table is not parallel and saves all data in memory in the spider head by default
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/handler.h b/sql/handler.h index 384166cf5c4..83e8bc2a60a 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -2780,6 +2780,7 @@ public: time_t check_time; time_t update_time; uint block_size; /* index block size */ + ha_checksum checksum; /* number of buffer bytes that native mrr implementation needs, @@ -3804,7 +3805,7 @@ public: virtual uint max_supported_key_part_length() const { return 255; } virtual uint min_record_length(uint options) const { return 1; } - virtual uint checksum() const { return 0; } + virtual int calculate_checksum(); virtual bool is_crashed() const { return 0; } virtual bool auto_repair(int error) const { return 0; } |