summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--storage/innobase/dict/dict0stats.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/innobase/dict/dict0stats.cc b/storage/innobase/dict/dict0stats.cc
index bf2645fd65c..f8a4cebfb16 100644
--- a/storage/innobase/dict/dict0stats.cc
+++ b/storage/innobase/dict/dict0stats.cc
@@ -2249,6 +2249,9 @@ dict_stats_update_persistent(
}
ut_ad(!dict_index_is_ibuf(index));
+ mutex_enter(&dict_sys->mutex);
+ dict_stats_empty_index(index, false);
+ mutex_exit(&dict_sys->mutex);
index_stats_t stats = dict_stats_analyze_index(index);