Commit 3ec47723 authored by unknown's avatar unknown

FT2 bug in mi_delete fixed

parent 41021a0f
...@@ -260,7 +260,7 @@ static int d_search(register MI_INFO *info, register MI_KEYDEF *keyinfo, ...@@ -260,7 +260,7 @@ static int d_search(register MI_INFO *info, register MI_KEYDEF *keyinfo,
{ {
DBUG_PRINT("info",("FT2: going down")); DBUG_PRINT("info",("FT2: going down"));
keyinfo=&info->s->ft2_keyinfo; keyinfo=&info->s->ft2_keyinfo;
kpos-=keyinfo->keylength; /* we'll modify key entry 'in vivo' */ kpos-=keyinfo->keylength+nod_flag; /* we'll modify key entry 'in vivo' */
key+=off; key+=off;
ret_value=_mi_ck_real_delete(info, &info->s->ft2_keyinfo, ret_value=_mi_ck_real_delete(info, &info->s->ft2_keyinfo,
key, HA_FT_WLEN, &root); key, HA_FT_WLEN, &root);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment