mariadb/storage/maria
Monty 403dacf6a9 Fixed crash in aria recovery when using bulk insert
MDEV-20578 Got error 126 when executing undo undo_key_delete
upon Aria crash recovery

The crash happens in this scenario:
- Table with unique keys and non unique keys
- Batch insert (LOAD DATA or INSERT ... SELECT) with REPLACE
- Some insert succeeds followed by duplicate key error

In the above scenario the table gets corrupted.

The bug was that we don't generate any undo entry for the
failed insert as the whole insert can be ignored by undo.
The code did however not take into account that when bulk
insert is used, we would write cached keys to the file on
failure and undo would wrongly ignore these.

Fixed by moving the writing of the cache keys after we write
the aborted-insert event to the log.
2020-05-26 20:05:17 +03:00
..
unittest Backport aria usage if LSN_FMT from 10.3 2019-06-25 12:07:50 +03:00
CMakeLists.txt Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
file_formats.txt
ft_maria.c Update FSF address 2019-05-10 20:52:00 +03:00
ha_maria.cc Merge 10.1 into 10.2 2020-04-27 13:28:13 +03:00
ha_maria.h Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
lockman.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
lockman.h Update FSF address 2019-05-10 20:52:00 +03:00
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 Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_changed.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_check.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +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 Update FSF address 2019-05-10 20:52:00 +03:00
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 Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_commit.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_control_file.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_control_file.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_create.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_crypt.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
ma_crypt.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
ma_dbug.c Update FSF address 2019-05-10 20:52:00 +03:00
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 Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_dynrec.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_extra.c MDEV-17576 Assertion in maria_extra upon ALTER on table with triggers and locks 2019-06-25 16:17:29 +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 Update FSF address 2019-05-10 20:52:00 +03:00
ma_ft_eval.h Update FSF address 2019-05-10 20:52:00 +03:00
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 Update FSF address 2019-05-10 20:52:00 +03:00
ma_ft_test1.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_ft_test1.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_ft_update.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_ftdefs.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_fulltext.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_info.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_init.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
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 Update FSF address 2019-05-10 20:52:00 +03:00
ma_keycache.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_locking.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_loghandler.c MDEV-21981 Replace arithmetic + with bitwise OR when possible 2020-03-19 15:09:13 +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 Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
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 Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_pagecaches.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_pagecrc.c Fix GCC 10 -Woverflow 2020-04-17 12:02:22 +03:00
ma_panic.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_preload.c Update FSF address 2019-05-10 20:52:00 +03:00
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 Update FSF address 2019-05-10 20:52:00 +03:00
ma_recovery_util.c Fixed Aria recovery progress printing 2019-06-25 12:07:50 +03:00
ma_recovery_util.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_rename.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_rfirst.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_rkey.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_rlast.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_rnext.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_rnext_same.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_rprev.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_rrnd.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_rsame.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_rsamepos.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_rt_index.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_rt_index.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_rt_key.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_rt_key.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_rt_mbr.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_rt_mbr.h Update FSF address 2019-05-10 20:52:00 +03:00
ma_rt_split.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_rt_test.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_scan.c Update FSF address 2019-05-10 20:52:00 +03:00
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 Update FSF address 2019-05-10 20:52:00 +03:00
ma_sort.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_sp_defs.h Update FSF address 2019-05-10 20:52:00 +03:00
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 Update FSF address 2019-05-10 20:52:00 +03:00
ma_state.c Fixed bug in lock tables + alter table with Aria tables. 2019-10-16 18:40:31 +03:00
ma_state.h Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_static.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_statrec.c Update FSF address 2019-05-10 20:52:00 +03:00
ma_test1.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_test2.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_test3.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
ma_test_all.res
ma_test_all.sh makes mi_test_all.sh & ma_test_all.sh working (MDEV-285) 2012-09-25 13:45:11 +03:00
ma_test_big.sh
ma_test_force_start.pl CRLF->LF 2015-06-02 22:07:47 +02:00
ma_test_recovery
ma_trnman.h Update FSF address 2019-05-11 19:25:02 +03:00
ma_unique.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ma_update.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
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 Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
maria_ftdump.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
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 Update FSF address 2019-05-10 20:52:00 +03:00
tablockman.h Update FSF address 2019-05-10 20:52:00 +03:00
test_pack
trnman.c Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
trnman.h Merge branch '5.5' into 10.1 2019-05-11 19:15:57 +03:00
trnman_public.h Update FSF address 2019-05-10 20:52:00 +03:00