From 7e1be009d4096ffed802442989a43621f05b3697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C5=A1a=20=C5=BDivkov?= Date: Fri, 26 May 2017 11:32:57 +0200 Subject: [PATCH] Add missing "_" to a caller of LuceneVersionManager.getDir Lucene index dir is named like "_". All the callers to the LuceneVersionManager.getDir were taking care to include the underscore except the one fixed in this change. Change-Id: Ibeea3235e70b5acaa945302d19c3ae55203b0bd9 --- .../java/com/google/gerrit/lucene/LuceneVersionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerrit-lucene/src/main/java/com/google/gerrit/lucene/LuceneVersionManager.java b/gerrit-lucene/src/main/java/com/google/gerrit/lucene/LuceneVersionManager.java index f6f0c287ff..cda562bcea 100644 --- a/gerrit-lucene/src/main/java/com/google/gerrit/lucene/LuceneVersionManager.java +++ b/gerrit-lucene/src/main/java/com/google/gerrit/lucene/LuceneVersionManager.java @@ -74,7 +74,7 @@ public class LuceneVersionManager extends AbstractVersionManager implements Life TreeMap> versions = new TreeMap<>(); for (Schema 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());