diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2021-08-31 13:54:55 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2021-08-31 13:54:55 +0300 |
commit | 45a05fda27dc7058ce8a89f14b1daa56352adf6b (patch) | |
tree | 5f8498390a42a9861cbc7ff3d2115a650aeb0634 /mysql-test/main/type_bit_innodb.result | |
parent | c5fd9aa562fb15e8d6ededceccbec0c9792a3243 (diff) | |
download | mariadb-git-45a05fda27dc7058ce8a89f14b1daa56352adf6b.tar.gz |
MDEV-25919: Replace dict_table_t::stats_bg_flag with MDL
The purpose of dict_table_t::stats_bg_flag was to prevent
race conditions between DDL operations and a background thread
that updates persistent statistics for InnoDB tables.
Now that with the parent commit, we started to acquire a
shared meta-data lock (MDL) on the InnoDB persistent statistics tables
in background tasks that access them, we may easily acquire MDL
on the table for which the statistics are being updated. This will by
design prevent race conditions with any DDL operations on that table,
and the stats_bg_flag may be removed.
dict_stats_process_entry_from_recalc_pool(): Complete rewrite.
During the processing, retain the entry in recalc_pool, so
that dict_stats_recalc_pool_del() will be able to request
deletion of the entry, or delete the entry if its caller is
holding MDL_EXCLUSIVE while we are waiting for MDL.
recalc_pool: In addition to the table ID, store a state for
inter-thread communication, so that dict_stats_recalc_pool_del()
can wait until all processing is finished.
Reviewed by: Thirunarayanan Balathandayuthapani
Diffstat (limited to 'mysql-test/main/type_bit_innodb.result')
0 files changed, 0 insertions, 0 deletions