Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr 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.java
index 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