Commit 792ea1f6 authored by Vasil Dimov's avatar Vasil Dimov

Bug#53046 dict_update_statistics_low can still be run concurrently

on same table

Followup to vasil.dimov@oracle.com-20100428102033-dt3caf531rs3lidr :

Add more asserions, which I forgot.
parent 7cf27d38
...@@ -274,6 +274,11 @@ dict_index_stat_mutex_exit( ...@@ -274,6 +274,11 @@ dict_index_stat_mutex_exit(
/*=======================*/ /*=======================*/
const dict_index_t* index) /*!< in: index */ const dict_index_t* index) /*!< in: index */
{ {
ut_ad(index != NULL);
ut_ad(index->magic_n == DICT_INDEX_MAGIC_N);
ut_ad(index->cached);
ut_ad(!index->to_be_dropped);
mutex_exit(GET_INDEX_STAT_MUTEX(index)); mutex_exit(GET_INDEX_STAT_MUTEX(index));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment