提交 2053cadf authored 作者: andrei's avatar andrei

Addressing code review comments. Take two

上级 72959173
...@@ -20,7 +20,6 @@ import java.util.ArrayList; ...@@ -20,7 +20,6 @@ import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.HashSet; import java.util.HashSet;
import java.util.Map;
import java.util.Set; import java.util.Set;
import java.util.StringTokenizer; import java.util.StringTokenizer;
import java.util.UUID; import java.util.UUID;
...@@ -763,9 +762,6 @@ public class FullText { ...@@ -763,9 +762,6 @@ public class FullText {
+ StringUtils.quoteIdentifier(TRIGGER_PREFIX + table); + StringUtils.quoteIdentifier(TRIGGER_PREFIX + table);
stat.execute("DROP TRIGGER IF EXISTS " + trigger); stat.execute("DROP TRIGGER IF EXISTS " + trigger);
if (create) { if (create) {
ResultSet rs = stat.executeQuery("SELECT value" +
" FROM information_schema.settings" +
" WHERE name = 'MV_STORE'");
boolean multiThread = FullTextTrigger.isMultiThread(conn); boolean multiThread = FullTextTrigger.isMultiThread(conn);
StringBuilder buff = new StringBuilder( StringBuilder buff = new StringBuilder(
"CREATE TRIGGER IF NOT EXISTS "); "CREATE TRIGGER IF NOT EXISTS ");
...@@ -834,7 +830,7 @@ public class FullText { ...@@ -834,7 +830,7 @@ public class FullText {
private static void setIgnoreList(FullTextSettings setting, private static void setIgnoreList(FullTextSettings setting,
String commaSeparatedList) { String commaSeparatedList) {
String[] list = StringUtils.arraySplit(commaSeparatedList, ',', true); String[] list = StringUtils.arraySplit(commaSeparatedList, ',', true);
setting.addInored(Arrays.asList(list)); setting.addIgnored(Arrays.asList(list));
} }
/** /**
...@@ -1165,7 +1161,7 @@ public class FullText { ...@@ -1165,7 +1161,7 @@ public class FullText {
* INTERNAL * INTERNAL
* Close all fulltext settings, freeing up memory. * Close all fulltext settings, freeing up memory.
*/ */
public static synchronized void closeAll() { public static void closeAll() {
FullTextSettings.closeAll(); FullTextSettings.closeAll();
} }
......
...@@ -79,7 +79,7 @@ final class FullTextSettings { ...@@ -79,7 +79,7 @@ final class FullTextSettings {
* Amend set of ignored words * Amend set of ignored words
* @param words to add * @param words to add
*/ */
public void addInored(Iterable<String> words) { public void addIgnored(Iterable<String> words) {
synchronized (ignoreList) { synchronized (ignoreList) {
for (String word : words) { for (String word : words) {
word = normalizeWord(word); word = normalizeWord(word);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论