From ffb83ba65026e2af547b44601c4894437e4f031c Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 2 May 2019 13:09:27 +0200 Subject: 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 --- sql/handler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sql/handler.h') 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; } -- cgit v1.2.1