summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2019-12-02 11:48:37 +0300
committerAleksey Midenkov <midenok@gmail.com>2019-12-02 11:48:37 +0300
commit498a96a4789e58549ce87b5843e804e055ab327f (patch)
tree36da2d9f9c8180fbad55e0413c70f8c0702b68f0 /storage
parent57cab7cd5114d3ef47203118cddd3ad0a22f2861 (diff)
downloadmariadb-git-498a96a4789e58549ce87b5843e804e055ab327f.tar.gz
MDEV-20441 ER_CRASHED_ON_USAGE upon update on versioned Aria table
Turn read cache off for update and multi-update for versioned table. no_cache is reinited on each TABLE open because it is applicable for specific algorithms. As a side fix vers_insert_history_row() honors vers_write setting. Aria with row_format=fixed uses IO_CACHE of type READ_CACHE for sequential read in update loop. When history row is inserted inside this loop the cache misses it and fails with error. TODO: Currently maria_extra() does not support SEQ_READ_APPEND. Probably it might be possible to use this type of cache.
Diffstat (limited to 'storage')
-rw-r--r--storage/maria/ma_check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/maria/ma_check.c b/storage/maria/ma_check.c
index eadac5b04eb..101c33b7802 100644
--- a/storage/maria/ma_check.c
+++ b/storage/maria/ma_check.c
@@ -6183,7 +6183,7 @@ end:
}
- /* write suffix to data file if neaded */
+/* Write suffix to data file if needed */
int maria_write_data_suffix(MARIA_SORT_INFO *sort_info, my_bool fix_datafile)
{