Skip to content

Commit a18ffe6

Browse files
committed
fix the warning
1 parent 619ebc3 commit a18ffe6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/org/opensolaris/opengrok/index/Indexer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,9 @@ public static void main(String argv[]) {
542542
RuntimeEnvironment env = RuntimeEnvironment.getInstance();
543543
env.setConfiguration(cfg);
544544

545-
if (RuntimeEnvironment.isRenamedFilesEnabled()) {
545+
// Issue a warning when JDBC is used with renamed file handling.
546+
// This causes heavy slowdown when used with JavaDB (issue #774).
547+
if (RuntimeEnvironment.isRenamedFilesEnabled() && cfg.isHistoryCacheInDB()) {
546548
System.out.println("History stored in DB and renamed file handling is on - possible performance degradation");
547549
}
548550

0 commit comments

Comments
 (0)