mirror of https://github.com/apache/lucene.git
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:
parent
68d95edb9b
commit
ec560e3855
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue