Merge "InitIndex should not always set the latest version ready"
This commit is contained in:
@@ -60,12 +60,12 @@ class InitIndex implements InitStep {
|
|||||||
ui.header("Index");
|
ui.header("Index");
|
||||||
type = index.select("Type", "type", type);
|
type = index.select("Type", "type", type);
|
||||||
}
|
}
|
||||||
for (SchemaDefinitions<?> def : IndexModule.ALL_SCHEMA_DEFS) {
|
|
||||||
AbstractLuceneIndex.setReady(
|
|
||||||
site, def.getName(), def.getLatest().getVersion(), true);
|
|
||||||
}
|
|
||||||
if ((site.isNew || isEmptySite()) && type == IndexType.LUCENE) {
|
if ((site.isNew || isEmptySite()) && type == IndexType.LUCENE) {
|
||||||
// Do nothing
|
for (SchemaDefinitions<?> def : IndexModule.ALL_SCHEMA_DEFS) {
|
||||||
|
AbstractLuceneIndex.setReady(
|
||||||
|
site, def.getName(), def.getLatest().getVersion(), true);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (IndexType.values().length <= 1) {
|
if (IndexType.values().length <= 1) {
|
||||||
ui.header("Index");
|
ui.header("Index");
|
||||||
|
Reference in New Issue
Block a user