mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 17:14:30 +02:00
ft-update bug fixed
myisam/ft_parser.c: cleanup myisam/ft_update.c: bug fixed mysql-test/mysql-test-run.sh: typo fixed
This commit is contained in:
parent
cb6c87f325
commit
7c1e275715
3 changed files with 7 additions and 13 deletions
|
|
@ -177,14 +177,7 @@ int _mi_ft_update(MI_INFO *info, uint keynr, byte *keybuf,
|
|||
(uchar*) old_word->pos,old_word->len,
|
||||
(uchar*) new_word->pos,new_word->len,0);
|
||||
if (cmp==0)
|
||||
{
|
||||
double p=(old_word->weight-new_word->weight)/
|
||||
(old_word->weight+new_word->weight);
|
||||
if (p<1e-5)
|
||||
cmp=0;
|
||||
else
|
||||
cmp=sgn(p);
|
||||
}
|
||||
cmp=sgn(old_word->weight-new_word->weight);
|
||||
else
|
||||
cmp=sgn(cmp);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue