diff options
author | svoj@mysql.com/june.mysql.com <> | 2007-09-13 15:39:16 +0500 |
---|---|---|
committer | svoj@mysql.com/june.mysql.com <> | 2007-09-13 15:39:16 +0500 |
commit | 84a9e656e00c0aca0e3b5a34bd6a758da7d031d9 (patch) | |
tree | 82d23f01d2218d826e733d6d8a4d62634c9555bd /heap/hp_delete.c | |
parent | 45647d3bd9fc2d99ebc231c27aee399643ed4f75 (diff) | |
download | mariadb-git-84a9e656e00c0aca0e3b5a34bd6a758da7d031d9.tar.gz |
BUG#30590 - delete from memory table with composite btree primary key
DELETE query against memory table with btree index may remove
not all matching rows. This happens only when DELETE uses
index read method to find matching rows. E.g. for queries
like DELETE FROM t1 WHERE a=1.
Fixed by reverting fix for BUG9719 and applying proper solution.
Diffstat (limited to 'heap/hp_delete.c')
-rw-r--r-- | heap/hp_delete.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/heap/hp_delete.c b/heap/hp_delete.c index 266a9da6ca3..90e537081d3 100644 --- a/heap/hp_delete.c +++ b/heap/hp_delete.c @@ -73,10 +73,7 @@ int hp_rb_delete_key(HP_INFO *info, register HP_KEYDEF *keyinfo, int res; if (flag) - { info->last_pos= NULL; /* For heap_rnext/heap_rprev */ - info->lastkey_len= 0; - } custom_arg.keyseg= keyinfo->seg; custom_arg.key_length= hp_rb_make_key(keyinfo, info->recbuf, record, recpos); |