1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-30 11:22:14 +03:00
Files
mariadb/storage/innodb_plugin/include
Marko Mäkelä 1bd0c9b531 Bug#12861864 RACE CONDITION IN BTR_GET_SIZE() AND DROP INDEX/TABLE/DATABASE
also filed as Bug#13146269, Bug#13713178

btr_get_size(): Add mtr_t parameter. Require that the caller S-latches
index->lock. If index->page==FIL_NULL or the index is to be dropped,
return ULINT_UNDEFINED to indicate that the statistics are
unavailable.

dict_update_statistics(): If btr_get_size() returns ULINT_UNDEFINED,
fake the index cardinality statistics.

dict_index_set_page(): Unused function, remove.

row_drop_table_for_mysql(): Before starting to drop the table, mark
the indexes unavailable in the data dictionary cache while holding
index->lock X-latch.

ha_innobase::prepare_drop_index(), ha_innobase::final_drop_index():
When setting index->to_be_dropped, acquire the index->lock X-latch.

rb:960 approved by Jimmy Yang
2012-02-28 14:00:00 +02:00
..
2009-07-30 17:42:56 +05:00
2010-04-01 17:01:22 +04:00
2011-01-17 14:06:48 +02:00
2009-07-30 17:42:56 +05:00
2010-04-01 17:02:01 +04:00
2010-04-01 17:02:01 +04:00
2012-02-16 12:20:41 +02:00
2010-06-10 10:31:28 -04:00
2010-04-01 15:59:25 +04:00
2010-04-01 15:59:25 +04:00
2010-04-01 15:59:25 +04:00
2009-07-30 17:42:56 +05:00
2009-07-30 17:42:56 +05:00
2010-04-01 15:59:25 +04:00
2009-07-30 17:42:56 +05:00
2009-07-30 17:42:56 +05:00
2009-07-30 17:42:56 +05:00
2010-04-01 15:59:25 +04:00
2010-04-01 17:01:22 +04:00
2009-07-30 17:42:56 +05:00
2011-10-04 09:21:47 -05:00
2011-01-17 14:06:48 +02:00
2010-04-01 15:59:25 +04:00
2010-04-01 16:56:22 +04:00