mariadb/storage/innobase/sync
Jan Lindström a4fa940bad MDEV-11336: Enable defragmentation on 10.2 when tests pass
Problem was that we could take page latches on different
order than wat is entitled with SX-lock. To follow the
latching order defined in WL#6326, acquire index->lock X-latch.
This entitles us to acquire page latches in any order for the index.

btr0btr.cc
	Document latch rules before and after MariaDB 10.2.2

sync0rw.cc
	Document latch compatibility rules better.

btr_defragment_merge_pages
	Fix parameter value.

btr_defragment_thread
	Acquire X-lock to dict_index_t::lock before restoring
	cursor position and continuing defragmentation.

ha_innobase::optimize
	Restore defragment feature.

Testing
	Add GIS-index and FT-index to table being defragmented.

	Defragmentation is not done to GIS-indexes and FT auxiliary
	tables.
2017-10-12 12:56:20 +03:00
..
sync0arr.cc Fix some GCC 7 warnings for InnoDB 2017-08-10 14:00:51 +03:00
sync0debug.cc fix a data race 2017-09-27 13:47:56 +04:00
sync0rw.cc MDEV-11336: Enable defragmentation on 10.2 when tests pass 2017-10-12 12:56:20 +03:00
sync0sync.cc MDEV-13485 MTR tests fail massively with --innodb-sync-debug 2017-08-23 08:44:11 +03:00