mariadb/storage/innobase
Marko Mäkelä 14a18d7d7f MDEV-23026/MDEV-25474 fixup: Assertion ib_table->stat_initialized
It is possible that an object that was originally created by
open_purge_table() will remain cached and reused for SQL execution.
Our previous fix wrongly assumed that ha_innobase::open() would
always be called before SQL execution starts. Therefore, we must
invoke dict_stats_init() in ha_innobase::info_low() instead of
only doing it in ha_innobase::open().

Note: Concurrent execution of dict_stats_init() on the same table
is possible, but it also was possible between two calls to
ha_innobase::open(), with no ill effects observed.

This should fix the assertion failure on stat_initialized.
A possibly easy way to reproduce it would have been
to run the server with innodb_force_recovery=2 (disable the purge of
history), update a table so that an indexed virtual column will be
affected, and finally restart the server normally (purge enabled),
to observe a crash when the table is accessed from SQL.

The problem was first observed and this fix verified by
Elena Stepanova. Also Thirunarayanan Balathandayuthapani
repeated the problem.
2021-04-24 09:37:46 +03:00
..
btr MDEV-22255 SIGABRT: Assertion id' failed in trx_write_trx_id on INSERT | Assertion id > 0' failed in trx_write_trx_id | Assertion val > 0' failed in row_upd_index_entry_sys_field | Assertion thr_get_trx(thr)->id || index->table->no_rollback()' failed. 2021-04-15 17:53:33 +03:00
buf MDEV-25019 memory allocation failures during startup because 2021-04-07 16:42:09 +05:30
data MDEV-20377: Fix -Wunused-but-set-variable 2020-07-01 20:34:06 +03:00
dict MDEV-24971 InnoDB access freed virtual column after rollback of secondary index 2021-04-12 16:06:06 +05:30
eval MDEV-21254 Remove unused keywords from the InnoDB SQL parser 2019-12-09 12:32:04 +02:00
fil Bug #32032897 DEADLOCKING WAIT GRAPH ON BUSY SERVER 2021-04-20 17:31:35 +03:00
fsp MDEV-23456 fixup: Simplify a comparison 2020-09-09 13:04:11 +03:00
fts Improve diagnostics in order to catch MDEV-18868 and similar bugs 2021-04-09 12:01:42 +05:30
fut Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
gis MDEV-23693 Failing assertion: my_atomic_load32_explicit(&lock->lock_word, MY_MEMORY_ORDER_RELAXED) == X_LOCK_DECR 2020-10-27 18:30:00 +05:30
ha Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
handler MDEV-23026/MDEV-25474 fixup: Assertion ib_table->stat_initialized 2021-04-24 09:37:46 +03:00
ibuf MDEV-13103 fixup: Actually fix a crash during IMPORT TABLESPACE 2021-03-31 09:06:44 +03:00
include MDEV-25466 Merge new release of InnoDB 5.7.34 to 10.2 2021-04-20 17:33:36 +03:00
lock MDEV-24923 : Port selected Galera conflict resolution changes from 10.6 2021-03-30 08:58:10 +03:00
log MDEV-25456 - fix predicate in ib::error_or_warn 2021-04-22 16:59:30 +02:00
mach Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
mem MDEV-20377: Make WITH_MSAN more usable 2020-07-01 17:23:00 +03:00
mtr MDEV-24188 fixup: Correct the FindBlockX predicate 2020-11-18 13:52:37 +02:00
mysql-test/storage_engine Fix for MDEV-17449, typo in error message (#1146) 2019-03-24 21:24:28 +04:00
os MDEV-21584 - portability fix 2021-03-18 12:24:35 +02:00
page MDEV-22653: Remove the useless parameter innodb_simulate_comp_failures 2021-03-22 18:12:44 +02:00
pars MDEV-22255 SIGABRT: Assertion id' failed in trx_write_trx_id on INSERT | Assertion id > 0' failed in trx_write_trx_id | Assertion val > 0' failed in row_upd_index_entry_sys_field | Assertion thr_get_trx(thr)->id || index->table->no_rollback()' failed. 2021-04-15 17:53:33 +03:00
que Cleanup: Remove unused symbol QUE_THR_PROCEDURE_WAIT 2021-01-08 16:14:26 +02:00
read MVCC::view_close(): Correct comments 2019-09-04 09:42:38 +03:00
rem MDEV-23851 MDEV-24229 BF-BF conflict issues 2020-12-28 09:06:16 +02:00
row MDEV-25459 MVCC read from index on CHAR or VARCHAR wrongly omits rows 2021-04-24 09:26:49 +03:00
srv MDEV-24197: Add "innodb_force_recovery" for "mariabackup --prepare" 2021-04-01 13:34:40 +03:00
sync MDEV-24188 Hang in buf_page_create() after reusing a previously freed page 2020-11-13 20:16:39 +02:00
trx MDEV-24434 Assertion trx->in_rw_trx_list... in trx_sys_any_active_transactions() 2021-04-12 10:53:08 +03:00
ut MDEV-20377: Fix cmake -DPLUGIN_PERFSCHEMA=NO 2020-07-02 06:03:59 +03:00
.clang-format-old switch off storage/innobase/.clang-format: InnoDB uses a common formatting style for all new code 2021-03-17 11:01:15 +03:00
bzip2.cmake Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
CMakeLists.txt MDEV-23693 Failing assertion: my_atomic_load32_explicit(&lock->lock_word, MY_MEMORY_ORDER_RELAXED) == X_LOCK_DECR 2020-10-27 18:30:00 +05:30
compile-innodb Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
COPYING.Google
COPYING.Percona
innodb.cmake MDEV-21362 do something with -fno-builtin-memcmp for rem0cmp.cc 2019-12-24 17:03:27 +08:00
lz4.cmake Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
lzma.cmake Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
lzo.cmake Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
plugin_exports
snappy.cmake Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00