mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-21471 ER_CRASHED_ON_USAGE upon UPDATE FOR PORTION on Aria table
Turn read cache off for periodic update.
Like 498a96a4
says:
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.
This applicable to any additional row inserts on UPDATE. In this case
it was initiated by UPDATE FOR PORTION.
Related to MDEV-20441.
This commit is contained in:
@ -465,6 +465,7 @@ int mysql_update(THD *thd,
|
||||
my_error(ER_NOT_CONSTANT_EXPRESSION, MYF(0), "FOR PORTION OF");
|
||||
DBUG_RETURN(true);
|
||||
}
|
||||
table->no_cache= true;
|
||||
}
|
||||
|
||||
old_covering_keys= table->covering_keys; // Keys used in WHERE
|
||||
|
Reference in New Issue
Block a user