mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
Bug#22384 - DELETE FROM table causes "Incorrect key file for table"
Deletes on a big index could crash the index when it needs to shrink. Put a forgotten negation operator in. No test case. It is too big for the test suite. And it does not work with 4.0, only with higher versions. It is attached to the bug report.
This commit is contained in:
parent
2b121cd0e1
commit
4027fc8dca
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ static int del(register MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *key,
|
|||
else
|
||||
{
|
||||
DBUG_PRINT("test",("Inserting of key when deleting"));
|
||||
if (_mi_get_last_key(info,keyinfo,leaf_buff,keybuff,endpos,
|
||||
if (!_mi_get_last_key(info,keyinfo,leaf_buff,keybuff,endpos,
|
||||
&tmp))
|
||||
goto err;
|
||||
ret_value=_mi_insert(info,keyinfo,key,leaf_buff,endpos,keybuff,
|
||||
|
|
Loading…
Add table
Reference in a new issue