diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-08-16 10:08:30 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-08-16 10:08:30 +0300 |
commit | 734db318ac69f60959bcd0d6c9116a3681449a38 (patch) | |
tree | cb8ccd4ecfebe752ec559834d3bf083efb9c8cd4 /sql/table_cache.cc | |
parent | b151cc2b0b1fc938de91035fbafc46667d9019e3 (diff) | |
parent | 8716bb3b72b7f5fed69b6dde413c2138f6d175b2 (diff) | |
download | mariadb-git-734db318ac69f60959bcd0d6c9116a3681449a38.tar.gz |
Merge 10.3 into 10.4
Diffstat (limited to 'sql/table_cache.cc')
-rw-r--r-- | sql/table_cache.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/table_cache.cc b/sql/table_cache.cc index a26a62bcfde..e82bb13228b 100644 --- a/sql/table_cache.cc +++ b/sql/table_cache.cc @@ -50,6 +50,7 @@ #include "lf.h" #include "table.h" #include "sql_base.h" +#include "sql_statistics.h" /** Configuration. */ @@ -991,6 +992,7 @@ void tdc_release_share(TABLE_SHARE *share) } if (share->tdc->flushed || tdc_records() > tdc_size) { + delete_stat_values_for_table_share(share); mysql_mutex_unlock(&LOCK_unused_shares); tdc_delete_share_from_hash(share->tdc); DBUG_VOID_RETURN; |