MDEV-36257: Fix a debug assertion

ha_innobase::info_low(): Assert that dict_table_t::stat_initialized()
only within the critical section.  Changes of this field should be
protected by dict_table_t::lock_latch.
This commit is contained in:
Marko Mäkelä 2025-04-17 15:11:21 +03:00
commit 23cc3eb1f7

View file

@ -14867,13 +14867,13 @@ stats_fetch:
ulint stat_clustered_index_size;
ulint stat_sum_of_other_index_sizes;
ut_ad(ib_table->stat_initialized());
#if !defined NO_ELISION && !defined SUX_LOCK_GENERIC
if (xbegin()) {
if (ib_table->stats_mutex_is_locked())
xabort();
ut_ad(ib_table->stat_initialized());
n_rows = ib_table->stat_n_rows;
stat_clustered_index_size
@ -14888,6 +14888,8 @@ stats_fetch:
{
ib_table->stats_shared_lock();
ut_ad(ib_table->stat_initialized());
n_rows = ib_table->stat_n_rows;
stat_clustered_index_size