提交 9a1c8fe2 authored 作者: noelgrandin's avatar noelgrandin

make the code read a little easier

上级 6fdcf654
...@@ -243,10 +243,10 @@ public class RegularTable extends TableBase { ...@@ -243,10 +243,10 @@ public class RegularTable extends TableBase {
} else { } else {
index = new NonUniqueHashIndex(this, indexId, indexName, cols, indexType); index = new NonUniqueHashIndex(this, indexId, indexName, cols, indexType);
} }
} else if (!indexType.isSpatial()) { } else if (indexType.isSpatial()) {
index = new TreeIndex(this, indexId, indexName, cols, indexType);
} else {
index = new SpatialTreeIndex(this, indexId, indexName, cols, indexType, false, true, session); index = new SpatialTreeIndex(this, indexId, indexName, cols, indexType, false, true, session);
} else {
index = new TreeIndex(this, indexId, indexName, cols, indexType);
} }
} }
if (database.isMultiVersion()) { if (database.isMultiVersion()) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论