From 4f5dd1d40eca3cd128023a9bf636e83489430c78 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 17 Apr 2018 00:44:46 +0200 Subject: [PATCH] ASAN error in main.statistics_index_crash-7362 one cannot do keyread on spatial indexes. --- sql/sql_statistics.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_statistics.cc b/sql/sql_statistics.cc index 6c42efd6068..ce320e87a4f 100644 --- a/sql/sql_statistics.cc +++ b/sql/sql_statistics.cc @@ -2475,7 +2475,7 @@ int collect_statistics_for_index(THD *thd, TABLE *table, uint index) DBUG_ENTER("collect_statistics_for_index"); /* No statistics for FULLTEXT indexes. */ - if (key_info->flags & HA_FULLTEXT) + if (key_info->flags & (HA_FULLTEXT|HA_SPATIAL)) DBUG_RETURN(rc); Index_prefix_calc index_prefix_calc(table, key_info);