From ff8df2c42bc453ca8d89e9461347f75b571d2fb5 Mon Sep 17 00:00:00 2001 From: "serg@serg.mysql.com" <> Date: Thu, 2 Nov 2000 17:36:21 +0100 Subject: Ill-minded FULLTEXT impilict initialization hack removed. From now on FULLTEXT search is initialized expilictly in mysql_select() --- myisam/ft_search.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'myisam/ft_search.c') diff --git a/myisam/ft_search.c b/myisam/ft_search.c index 035e149089f..9baab10df1e 100644 --- a/myisam/ft_search.c +++ b/myisam/ft_search.c @@ -158,7 +158,6 @@ FT_DOCLIST * ft_init_search(void *info, uint keynr, byte *key, ALL_IN_ONE aio; FT_DOCLIST *dlist; FT_DOC *dptr; - my_off_t saved_lastpos; /* black magic ON */ if ((int) (keynr = _mi_check_index((MI_INFO *)info,keynr)) < 0) @@ -174,8 +173,6 @@ FT_DOCLIST * ft_init_search(void *info, uint keynr, byte *key, aio.keyinfo=aio.info->s->keyinfo+keynr; aio.key_root=aio.info->s->state.key_root[keynr]; - saved_lastpos=aio.info->lastpos; - if (!(wtree=ft_parse(NULL,key,key_len))) return NULL; init_tree(&aio.dtree,0,sizeof(FT_SUPERDOC),(qsort_cmp)&FT_SUPERDOC_cmp,0, @@ -204,7 +201,6 @@ FT_DOCLIST * ft_init_search(void *info, uint keynr, byte *key, } err: - aio.info->lastpos=saved_lastpos; delete_tree(&aio.dtree); delete_tree(wtree); my_free((char*) wtree,MYF(0)); -- cgit v1.2.1