mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
Merge serg@bk-internal.mysql.com:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
This commit is contained in:
commit
3671fe1f72
5 changed files with 14 additions and 9 deletions
|
|
@ -345,11 +345,12 @@ static void _ftb_init_index_search(FT_INFO *ftb)
|
|||
if (ftbe->flags & FTB_FLAG_NO || /* 2 */
|
||||
ftbe->up->ythresh - ftbe->up->yweaks >1) /* 1 */
|
||||
{
|
||||
FTB_EXPR *top_ftbe=ftbe->up->up;
|
||||
FTB_EXPR *top_ftbe=ftbe->up;
|
||||
ftbw->docid[0]=HA_OFFSET_ERROR;
|
||||
for (ftbe=ftbw->up; ftbe != top_ftbe; ftbe=ftbe->up)
|
||||
if (!(ftbe->flags & FTB_FLAG_NO))
|
||||
ftbe->yweaks++;
|
||||
for (ftbe=(FTB_EXPR *)ftbw;
|
||||
ftbe != top_ftbe && !(ftbe->flags & FTB_FLAG_NO);
|
||||
ftbe=ftbe->up)
|
||||
ftbe->up->yweaks++;
|
||||
ftbe=0;
|
||||
break;
|
||||
}
|
||||
|
|
@ -363,7 +364,7 @@ static void _ftb_init_index_search(FT_INFO *ftb)
|
|||
else
|
||||
reset_tree(& ftb->no_dupes);
|
||||
}
|
||||
|
||||
|
||||
if (_ft2_search(ftb, ftbw, 1))
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue