diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-10-30 12:58:16 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-10-30 12:58:16 +0200 |
commit | 72eea39d4c4a8bcadccfdac457e61abc7b618ff8 (patch) | |
tree | 66afefe24bc7f9ce5896a7fdeba733818a7cba97 | |
parent | fbcd7c0c0659108624422bc845272fab775bdce5 (diff) | |
download | mariadb-git-72eea39d4c4a8bcadccfdac457e61abc7b618ff8.tar.gz |
MDEV-23991 fixup: Initialize the memory
This regression was introduced in
commit afc9d00c66db946c8240fe1fa6b345a3a8b6fec1.
This is a partial backport of
commit 199863d72b7cccaa4c75641c50c45a83b568ab8c from 10.4.
-rw-r--r-- | storage/innobase/dict/dict0stats.cc | 3 |
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); |