Commit d4a3aa33 authored by serg@serg.mylan's avatar serg@serg.mylan

postreview fixes

parent 3a7b6d68
...@@ -204,7 +204,7 @@ static int _ft2_search(FTB *ftb, FTB_WORD *ftbw, my_bool init_search) ...@@ -204,7 +204,7 @@ static int _ft2_search(FTB *ftb, FTB_WORD *ftbw, my_bool init_search)
{ {
int r; int r;
uint off; uint off;
int subkeys; int subkeys=1;
my_bool can_go_down; my_bool can_go_down;
MI_INFO *info=ftb->info; MI_INFO *info=ftb->info;
...@@ -279,8 +279,6 @@ static int _ft2_search(FTB *ftb, FTB_WORD *ftbw, my_bool init_search) ...@@ -279,8 +279,6 @@ static int _ft2_search(FTB *ftb, FTB_WORD *ftbw, my_bool init_search)
/* matching key found */ /* matching key found */
memcpy(ftbw->word+ftbw->off, info->lastkey, info->lastkey_length); memcpy(ftbw->word+ftbw->off, info->lastkey, info->lastkey_length);
if (!ftbw->off && (init_search || (ftbw->flags & FTB_FLAG_TRUNC)))
{
/* going down ? */ /* going down ? */
if (subkeys<0) if (subkeys<0)
{ {
...@@ -295,7 +293,6 @@ static int _ft2_search(FTB *ftb, FTB_WORD *ftbw, my_bool init_search) ...@@ -295,7 +293,6 @@ static int _ft2_search(FTB *ftb, FTB_WORD *ftbw, my_bool init_search)
DBUG_ASSERT(r==0); /* found something */ DBUG_ASSERT(r==0); /* found something */
memcpy(ftbw->word+off, info->lastkey, info->lastkey_length); memcpy(ftbw->word+off, info->lastkey, info->lastkey_length);
} }
}
ftbw->docid[0]=info->lastpos; ftbw->docid[0]=info->lastpos;
return 0; return 0;
} }
......
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