Add missing "_" to a caller of LuceneVersionManager.getDir
Lucene index dir is named like "<name>_<version>". All the callers to the LuceneVersionManager.getDir were taking care to include the underscore except the one fixed in this change. Change-Id: Ibeea3235e70b5acaa945302d19c3ae55203b0bd9
This commit is contained in:
parent
d0211d328b
commit
7e1be009d4
@ -74,7 +74,7 @@ public class LuceneVersionManager extends AbstractVersionManager implements Life
|
||||
TreeMap<Integer, AbstractVersionManager.Version<V>> versions = new TreeMap<>();
|
||||
for (Schema<V> schema : def.getSchemas().values()) {
|
||||
// This part is Lucene-specific.
|
||||
Path p = getDir(sitePaths, def.getName(), schema);
|
||||
Path p = getDir(sitePaths, def.getName() + "_", schema);
|
||||
boolean isDir = Files.isDirectory(p);
|
||||
if (Files.exists(p) && !isDir) {
|
||||
log.warn("Not a directory: %s", p.toAbsolutePath());
|
||||
|
Loading…
Reference in New Issue
Block a user