Skip to content

Commit d99619a

Browse files
author
Vladimir Kotal
committed
check index dir for configuration w/out projects
1 parent 1277512 commit d99619a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

opengrok-web/src/main/java/org/opengrok/web/WebappListener.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ public void contextInitialized(final ServletContextEvent servletContextEvent) {
121121
}
122122
}
123123
LOGGER.log(Level.FINE, "Index check for all projects done");
124+
} else {
125+
LOGGER.log(Level.FINE, "Checking index");
126+
try {
127+
IndexCheck.checkDir(new File(env.getDataRootPath(), IndexDatabase.INDEX_DIR));
128+
} catch (Exception e) {
129+
LOGGER.log(Level.SEVERE, "index check failed", e);
130+
}
131+
LOGGER.log(Level.FINE, "Index check done");
124132
}
125133

126134
env.startExpirationTimer();

0 commit comments

Comments
 (0)