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

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@594824 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2007-11-14 10:25:34 +00:00
parent 68d95edb9b
commit ec560e3855
1 changed files with 1 additions and 1 deletions

View File

@ -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