lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r594824 - /lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java
Date Wed, 14 Nov 2007 10:25:35 GMT
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



Mime
View raw message