Skip to content

Commit

Permalink
Merge from mysql-5.6 to mysql-trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaohua Wang committed Aug 29, 2014
2 parents e49b618 + 3a1d06e commit 5dadfcb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion storage/innobase/fts/fts0fts.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,8 @@ fts_tokenizer_word_get(
#endif

/* If it is a stopword, do not index it */
if (rbt_search(cache->stopword_info.cached_stopword,
if (cache->stopword_info.cached_stopword != NULL
&& rbt_search(cache->stopword_info.cached_stopword,
&parent, text) == 0) {

return(NULL);
Expand Down Expand Up @@ -3554,6 +3555,12 @@ fts_add_doc_by_id(

rw_lock_x_lock(&table->fts->cache->lock);

if (table->fts->cache->stopword_info.status
& STOPWORD_NOT_INIT) {
fts_load_stopword(table, NULL, NULL,
NULL, TRUE, TRUE);
}

fts_cache_add_doc(
table->fts->cache,
get_doc->index_cache,
Expand Down

0 comments on commit 5dadfcb

Please sign in to comment.