summaryrefslogtreecommitdiff
path: root/myisam/ft_stopwords.c
diff options
context:
space:
mode:
authorbar@gw.udmsearch.izhnet.ru <>2002-04-25 13:36:55 +0500
committerbar@gw.udmsearch.izhnet.ru <>2002-04-25 13:36:55 +0500
commiteab2893dac4f2447baf6b1b2b4f70869e974bf44 (patch)
tree5b8a058772659a40e41e2025e66f79531e604613 /myisam/ft_stopwords.c
parentc917658988937899e0c21defd4951b51b6d9ff92 (diff)
downloadmariadb-git-eab2893dac4f2447baf6b1b2b4f70869e974bf44.tar.gz
RB-Tree indexes support in HEAP tables
Renamed _hp_func -> hp_func mi_key_cmp moved to /mysys/my_handler.c New tests for HEAP tables
Diffstat (limited to 'myisam/ft_stopwords.c')
-rw-r--r--myisam/ft_stopwords.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/myisam/ft_stopwords.c b/myisam/ft_stopwords.c
index 9c2047c3b56..0e4112bb29a 100644
--- a/myisam/ft_stopwords.c
+++ b/myisam/ft_stopwords.c
@@ -50,7 +50,7 @@ int ft_init_stopwords(const char **sws)
for(;*sws;sws++)
{
if( (sw.len= (uint) strlen(sw.pos=*sws)) < ft_min_word_len) continue;
- if(!tree_insert(stopwords3, &sw, 0))
+ if(!tree_insert(stopwords3, &sw, 0, stopwords3->custom_arg))
{
delete_tree(stopwords3); /* purecov: inspected */
return -1; /* purecov: inspected */
@@ -64,7 +64,7 @@ int is_stopword(char *word, uint len)
FT_STOPWORD sw;
sw.pos=word;
sw.len=len;
- return tree_search(stopwords3,&sw) != NULL;
+ return tree_search(stopwords3, &sw, stopwords3->custom_arg) != NULL;
}