mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 11:57:38 +02:00
Merge 10.2 into 10.3
This commit is contained in:
commit
2b6f804490
24 changed files with 293 additions and 283 deletions
|
|
@ -75,7 +75,7 @@ dict_stats_is_persistent_enabled(const dict_table_t* table)
|
|||
+ dict_stats_update(DICT_STATS_RECALC_TRANSIENT) on a table that has
|
||||
just been PS-enabled.
|
||||
This is acceptable. Avoiding this would mean that we would have to
|
||||
protect the ::stat_persistent with dict_table_stats_lock() like the
|
||||
protect the ::stat_persistent with dict_sys->mutex like the
|
||||
other ::stat_ members which would be too big performance penalty,
|
||||
especially when this function is called from
|
||||
dict_stats_update_if_needed(). */
|
||||
|
|
@ -178,10 +178,7 @@ dict_stats_deinit(
|
|||
|
||||
ut_a(table->get_ref_count() == 0);
|
||||
|
||||
dict_table_stats_lock(table, RW_X_LATCH);
|
||||
|
||||
if (!table->stat_initialized) {
|
||||
dict_table_stats_unlock(table, RW_X_LATCH);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -221,6 +218,4 @@ dict_stats_deinit(
|
|||
sizeof(index->stat_n_leaf_pages));
|
||||
}
|
||||
#endif /* HAVE_valgrind */
|
||||
|
||||
dict_table_stats_unlock(table, RW_X_LATCH);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue