Merge "Add missing "_" to a caller of LuceneVersionManager.getDir" into stable-2.14

This commit is contained in:
David Pursehouse 2017-05-26 11:53:46 +00:00 committed by Gerrit Code Review
commit 2c7ffa796c

View File

@ -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());