mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
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:
parent
f388222d49
commit
23cc3eb1f7
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue