From ec560e3855abdff26df621cc7843e75804eb1fc3 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Wed, 14 Nov 2007 10:25:34 +0000 Subject: [PATCH] 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 --- src/java/org/apache/lucene/store/FSDirectory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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