summaryrefslogtreecommitdiff
path: root/myisam
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
commit2c32fdc67c0030c8ec9aeb90f5459bd4b407b103 (patch)
treeb5b9527b1bc70e60408cceb6942c8369a90eb84e /myisam
parent1e9bf28ba4e6c001798c50133580ba2f276af402 (diff)
downloadmariadb-git-2c32fdc67c0030c8ec9aeb90f5459bd4b407b103.tar.gz
correct fix for the bug #6151
Diffstat (limited to 'myisam')
-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),