Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-1044: put back original ctor for FSIndexOutput

Michael McCandlessaa7c63e82b50
diff --git a/src/java/org/apache/lucene/store/FSDirectory.java b/src/java/org/apache/lucene/store/FSDirectory.java
index 777f7c4da86..17a0d72622a 100644
--- a/src/java/org/apache/lucene/store/FSDirectory.java
+++ b/src/java/org/apache/lucene/store/FSDirectory.java
@@ -633,6 +633,10 @@ public class FSDirectory extends Directory {
private boolean isOpen;
private boolean doSync;
+ public FSIndexOutput(File path) throws IOException {
+ this(path, DEFAULT_DO_SYNC);
+ }
+
public FSIndexOutput(File path, boolean doSync) throws IOException {
file = new RandomAccessFile(path, "rw");