summaryrefslogtreecommitdiff
path: root/myisam/mi_delete.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-10-22 22:42:11 +0200
committerunknown <serg@serg.mylan>2004-10-22 22:42:11 +0200
commit221151d1e40834902f7a40aa619f1cce818ad798 (patch)
treeb5b9527b1bc70e60408cceb6942c8369a90eb84e /myisam/mi_delete.c
parent86d77ff3285a9633ad635b21b9cb9c45197afca3 (diff)
downloadmariadb-git-221151d1e40834902f7a40aa619f1cce818ad798.tar.gz
correct fix for the bug #6151
Diffstat (limited to 'myisam/mi_delete.c')
-rw-r--r--myisam/mi_delete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/myisam/mi_delete.c b/myisam/mi_delete.c
index 3e8ff9db009..b964cb35dd8 100644
--- a/myisam/mi_delete.c
+++ b/myisam/mi_delete.c
@@ -826,7 +826,7 @@ static uint remove_key(MI_KEYDEF *keyinfo, uint nod_flag,
else
get_key_length(rest_length,keypos);
- if (next_length > prev_length)
+ if (next_length >= prev_length)
{ /* Key after is based on deleted key */
uint pack_length,tmp;
bmove_upp((char*) keypos,(char*) (lastkey+next_length),