mariadb/storage/maria
Aleksey Midenkov 8ce5635a3e MDEV-22284 Aria table key read crash because wrong index used
When restoring lastinx last_key.keyinfo must be updated as well. The
good example is in _ma_check_index().

The point of failure is extra(HA_EXTRA_NO_KEYREAD) in
ha_maria::get_auto_increment():

  1. extra(HA_EXTRA_KEYREAD) saves lastinx;
  2. maria_rkey() changes index, so the lastinx and last_key.keyinfo;
  3. extra(HA_EXTRA_NO_KEYREAD) restores lastinx but not
     last_key.keyinfo.

So we have discrepancy between lastinx and last_key.keyinfo after 3.
2021-11-02 11:26:35 +03:00
..
unittest Backport aria usage if LSN_FMT from 10.3 2019-06-25 12:07:50 +03:00
CMakeLists.txt
file_formats.txt
ft_maria.c
ha_maria.cc Merge 10.1 into 10.2 2020-04-27 13:28:13 +03:00
ha_maria.h
lockman.c
lockman.h
ma_bitmap.c Fixed assert in Aria on SHOW PROCEDURE STATUS 2020-05-19 03:42:54 +03:00
ma_blockrec.c Merge 10.1 into 10.2 2019-07-09 13:22:22 +03:00
ma_blockrec.h imporve clang build 2019-06-25 13:21:36 +03:00
ma_cache.c
ma_changed.c
ma_check.c fix clang build 2021-06-15 13:10:16 +03:00
ma_check_standalone.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_checkpoint.c Merge 10.1 into 10.2 2019-07-09 13:22:22 +03:00
ma_checkpoint.h
ma_checksum.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_close.c Fixed memory leak with fulltext indexes 2020-04-18 11:51:42 +03:00
ma_commit.c
ma_commit.h
ma_control_file.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_control_file.h
ma_create.c Merge 10.1 into 10.2 2020-09-01 16:20:23 +03:00
ma_crypt.c
ma_crypt.h
ma_dbug.c
ma_delete.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_delete_all.c MDEV-19595 fixed 2019-06-19 00:35:44 +03:00
ma_delete_table.c
ma_dynrec.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_extra.c MDEV-22284 Aria table key read crash because wrong index used 2021-11-02 11:26:35 +03:00
ma_ft_boolean_search.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_ft_eval.c
ma_ft_eval.h
ma_ft_nlq_search.c MDEV-19740: Fix GCC 9.2.1 -Wmaybe-uninitialized on AMD64 2019-09-27 10:43:23 +03:00
ma_ft_parser.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_ft_stem.c
ma_ft_test1.c
ma_ft_test1.h
ma_ft_update.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_ftdefs.h
ma_fulltext.h
ma_info.c
ma_init.c
ma_key.c MDEV-21082: isnan/isinf compilation errors, isfinite warnings on MacOS 2019-11-19 16:28:15 +03:00
ma_key_recover.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_key_recover.h
ma_keycache.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_locking.c
ma_loghandler.c compilation fixes for sys-devel/gcc-11.2.0:11 2021-10-25 17:30:03 +02:00
ma_loghandler.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_loghandler_lsn.h Backport aria usage if LSN_FMT from 10.3 2019-06-25 12:07:50 +03:00
ma_norec.c
ma_open.c Merge 10.1 into 10.2 2019-07-09 13:22:22 +03:00
ma_packrec.c MDEV-21981 Replace arithmetic + with bitwise OR when possible 2020-03-19 15:09:13 +02:00
ma_page.c Fix clang 10 warnings 2020-04-27 09:40:34 +03:00
ma_pagecache.c Backport aria usage if LSN_FMT from 10.3 2019-06-25 12:07:50 +03:00
ma_pagecache.h
ma_pagecaches.c
ma_pagecrc.c Fix GCC 10 -Woverflow 2020-04-17 12:02:22 +03:00
ma_panic.c
ma_preload.c
ma_range.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_recovery.c Fixed crash in aria recovery when using bulk insert 2020-05-26 20:05:17 +03:00
ma_recovery.h
ma_recovery_util.c maria: ma_recovery cppcheck va_start called twice 2021-01-21 18:26:51 +11:00
ma_recovery_util.h
ma_rename.c
ma_rfirst.c
ma_rkey.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_rlast.c
ma_rnext.c
ma_rnext_same.c
ma_rprev.c
ma_rrnd.c
ma_rsame.c
ma_rsamepos.c
ma_rt_index.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_rt_index.h
ma_rt_key.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_rt_key.h
ma_rt_mbr.c
ma_rt_mbr.h
ma_rt_split.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_rt_test.c fix clang build 2021-08-23 16:47:25 +06:00
ma_scan.c
ma_search.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_servicethread.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_servicethread.h
ma_sort.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_sp_defs.h
ma_sp_key.c MDEV-21082: isnan/isinf compilation errors, isfinite warnings on MacOS 2019-11-19 16:28:15 +03:00
ma_sp_test.c
ma_state.c Fixed bug in lock tables + alter table with Aria tables. 2019-10-16 18:40:31 +03:00
ma_state.h
ma_static.c
ma_statrec.c
ma_test1.c
ma_test2.c
ma_test3.c
ma_test_all.res
ma_test_all.sh
ma_test_big.sh
ma_test_force_start.pl
ma_test_recovery
ma_trnman.h
ma_unique.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_update.c
ma_write.c Fixed crash in aria recovery when using bulk insert 2020-05-26 20:05:17 +03:00
maria_chk.c Fixed some errors & warnings found by clang 2019-08-08 23:08:23 +03:00
maria_def.h Fix of query cache bug in Aria 2019-09-04 10:09:46 +03:00
maria_dump_log.c
maria_ftdump.c
maria_pack.c MDEV-14183: aria_pack segfaults in compress_maria_file 2020-01-21 17:06:31 +03:00
maria_read_log.c Backport aria usage if LSN_FMT from 10.3 2019-06-25 12:07:50 +03:00
maria_rename.sh
tablockman.c
tablockman.h
test_pack
trnman.c
trnman.h
trnman_public.h