diff options
author | Eugene Kosov <claprix@yandex.ru> | 2020-11-25 16:01:38 +0300 |
---|---|---|
committer | Eugene Kosov <claprix@yandex.ru> | 2020-11-25 18:28:40 +0300 |
commit | 5991bd6215054f21ec5c36fc9345ffb50f1b2d04 (patch) | |
tree | 9040afab4bad961f05937969f6170ddb08a466d0 | |
parent | 10eaa43f86c6761f09708134b75748ff5c697e4e (diff) | |
download | mariadb-git-5991bd6215054f21ec5c36fc9345ffb50f1b2d04.tar.gz |
MDEV-24275 InnoDB persistent stats analyze forces full scan forcing lock crash
This is a fixup patch for MDEV-23991 afc9d00c66db946c8240fe1fa6b345a3a8b6fec1
We really should read result.n_leaf_pages, which was set previously.
Analysis and fix was provided by Jukka Santala. Thanks!
Reviewed by: Marko Mäkelä
-rw-r--r-- | storage/innobase/dict/dict0stats.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/dict/dict0stats.cc b/storage/innobase/dict/dict0stats.cc index f8a4cebfb16..e72a86500a6 100644 --- a/storage/innobase/dict/dict0stats.cc +++ b/storage/innobase/dict/dict0stats.cc @@ -1985,7 +1985,7 @@ static index_stats_t dict_stats_analyze_index(dict_index_t* index) since it will be faster and will give better results. */ if (root_level == 0 - || N_SAMPLE_PAGES(index) * n_uniq > index->stat_n_leaf_pages) { + || N_SAMPLE_PAGES(index) * n_uniq > result.n_leaf_pages) { if (root_level == 0) { DEBUG_PRINTF(" %s(): just one page," |