From a2a2e32c02643a0cec111511220227703fda1cd5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 1 Jul 2024 20:15:00 +0200 Subject: Merging upstream version 1:11.4.2. Signed-off-by: Daniel Baumann --- storage/csv/ha_tina.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'storage/csv/ha_tina.h') diff --git a/storage/csv/ha_tina.h b/storage/csv/ha_tina.h index 04318344..856bb789 100644 --- a/storage/csv/ha_tina.h +++ b/storage/csv/ha_tina.h @@ -124,7 +124,12 @@ public: /* Called in test_quick_select to determine if indexes should be used. */ - virtual double scan_time() { return (double) (stats.records+stats.deleted) / 20.0+10; } + virtual IO_AND_CPU_COST scan_time() + { + return + { (double) ((share->saved_data_file_length + IO_SIZE-1))/ IO_SIZE, + (stats.records+stats.deleted) * ROW_NEXT_FIND_COST }; + } /* The next method will never be called */ virtual bool fast_key_read() { return 1;} /* -- cgit v1.2.3