Apache Lucene open-source search software
LUCENE-1044: default doSync to false for now because performance cost of the simple 'sync() before every close()' approach is too severe in many cases
Michael McCandlessec560e3855ab
diff --git a/src/java/org/apache/lucene/store/FSDirectory.java b/src/java/org/apache/lucene/store/FSDirectory.javaindex d4352dea52a..777f7c4da86 100644--- a/src/java/org/apache/lucene/store/FSDirectory.java+++ b/src/java/org/apache/lucene/store/FSDirectory.java@@ -62,7 +62,7 @@ public class FSDirectory extends Directory {private static boolean disableLocks = false;- private static boolean DEFAULT_DO_SYNC = true;+ private static boolean DEFAULT_DO_SYNC = false;// True if we should call sync() before closing a file.// This improves chances that index will still be