summaryrefslogtreecommitdiff
path: root/myisam/ft_update.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2001-07-27 20:39:48 +0200
committerunknown <serg@serg.mysql.com>2001-07-27 20:39:48 +0200
commit7c1e2757152886d118d9eb7e8737f95cae71c4f9 (patch)
tree0b174e19d112d3090a6251dabaf5282e5d7888db /myisam/ft_update.c
parentcb6c87f3253e0828a50ce1f082d0da701cf51919 (diff)
downloadmariadb-git-7c1e2757152886d118d9eb7e8737f95cae71c4f9.tar.gz
ft-update bug fixed
myisam/ft_parser.c: cleanup myisam/ft_update.c: bug fixed mysql-test/mysql-test-run.sh: typo fixed
Diffstat (limited to 'myisam/ft_update.c')
-rw-r--r--myisam/ft_update.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/myisam/ft_update.c b/myisam/ft_update.c
index 61c6313ec67..1e00cc5d7a0 100644
--- a/myisam/ft_update.c
+++ b/myisam/ft_update.c
@@ -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);