You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by mi...@apache.org on 2007/11/14 11:25:35 UTC

svn commit: r594824 - /lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java

Author: mikemccand
Date: Wed Nov 14 02:25:34 2007
New Revision: 594824

URL: http://svn.apache.org/viewvc?rev=594824&view=rev
Log:
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

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java?rev=594824&r1=594823&r2=594824&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java Wed Nov 14 02:25:34 2007
@@ -62,7 +62,7 @@
 
   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