mariadb/storage/innobase/ut
Marko Mäkelä a13a636c74 MDEV-11802 innodb.innodb_bug14676111 fails
The function trx_purge_stop() was calling os_event_reset(purge_sys->event)
before calling rw_lock_x_lock(&purge_sys->latch). The os_event_set()
call in srv_purge_coordinator_suspend() is protected by that X-latch.

It would seem a good idea to consistently protect both os_event_set()
and os_event_reset() calls with a common mutex or rw-lock in those
cases where os_event_set() and os_event_reset() are used
like condition variables, tied to changes of shared state.

For each os_event_t, we try to document the mutex or rw-lock that is
being used. For some events, frequent calls to os_event_set() seem to
try to avoid hangs. Some events are never waited for infinitely, only
timed waits, and os_event_set() is used for early termination of these
waits.

os_aio_simulated_put_read_threads_to_sleep(): Define as a null macro
on other systems than Windows. TODO: remove this altogether and disable
innodb_use_native_aio on Windows.

os_aio_segment_wait_events[]: Initialize only if innodb_use_native_aio=0.

log_write_flush_to_disk_low(): Invoke log_mutex_enter() at the end, to
avoid race conditions when changing the system state. (No potential
race condition existed before MySQL 5.7.)
2017-02-20 12:32:43 +02:00
..
ut0byte.cc Temporary commit of merge of MariaDB 10.0-base and MySQL 5.6 2012-08-01 17:27:34 +03:00
ut0crc32.cc Revert "Merge pull request #275 from grooverdan/10.2-MDEV-11075-crc32-runtime-detect-getauxval" 2016-12-20 22:46:29 +02:00
ut0dbg.cc MDEV-11690 Remove UNIV_HOTBACKUP 2016-12-30 16:05:42 +02:00
ut0list.cc Merge InnoDB 5.7 from mysql-5.7.9. 2016-09-02 13:22:28 +03:00
ut0mem.cc MDEV-11690 Remove UNIV_HOTBACKUP 2016-12-30 16:05:42 +02:00
ut0new.cc MDEV-12050 Remove unused InnoDB Memcached hooks 2017-02-13 11:24:02 +02:00
ut0rbt.cc Merge InnoDB 5.7 from mysql-5.7.9. 2016-09-02 13:22:28 +03:00
ut0rnd.cc Merge InnoDB 5.7 from mysql-5.7.14. 2016-09-08 15:49:03 +03:00
ut0timer.cc MDEV-5834: Merge Kakao Defragmentation implementation to MariaDB 10.1 2014-08-06 15:28:58 +03:00
ut0ut.cc MDEV-12050 Remove unused InnoDB Memcached hooks 2017-02-13 11:24:02 +02:00
ut0vec.cc Merge InnoDB 5.7 from mysql-5.7.9. 2016-09-02 13:22:28 +03:00
ut0wqueue.cc MDEV-11802 innodb.innodb_bug14676111 fails 2017-02-20 12:32:43 +02:00