summaryrefslogtreecommitdiff
path: root/libmysqld/libmysqld.def
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-04-12 11:29:32 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-04-12 11:29:32 +0300
commitea2d44d01b4aead2e1d6d88b9eede39fd99dff67 (patch)
tree575386be3dc57e3f6ff1695cb5b6756567e5cf63 /libmysqld/libmysqld.def
parent75dd7a048315affc0c5986b6e955965d46621c6a (diff)
downloadmariadb-git-ea2d44d01b4aead2e1d6d88b9eede39fd99dff67.tar.gz
MDEV-18802 Assertion table->stat_initialized failed in dict_stats_update_if_needed()
When a table has been evicted from dict_sys and reloaded internally by InnoDB for FOREIGN KEY processing, statistics may not be initialized, but nevertheless row_update_cascade_for_mysql() could invoke dict_stats_update_if_needed(). In that case, we cannot really update the statistics. For tables that have STATS_PERSISTENT=1 and STATS_AUTO_RECALC=1, ANALYZE TABLE might have to be executed later. dict_stats_update_if_needed(): Replace the assertion with a conditional early return.
Diffstat (limited to 'libmysqld/libmysqld.def')
0 files changed, 0 insertions, 0 deletions