Apache Lucene open-source search software
LUCENE-2574: disable this opto for now
Michael McCandless0c0fb8bb5a3c
diff --git a/lucene/src/java/org/apache/lucene/store/FSDirectory.java b/lucene/src/java/org/apache/lucene/store/FSDirectory.javaindex d18f00cae0c..0c2ee798752 100644--- a/lucene/src/java/org/apache/lucene/store/FSDirectory.java+++ b/lucene/src/java/org/apache/lucene/store/FSDirectory.java@@ -460,7 +460,7 @@ public abstract class FSDirectory extends Directory {// buffer size, and the given IndexInput supports FileChannel copying.// NOTE: the below check relies on NIOIndexInput extending Simple. If that// changes in the future, we should change the check as well.- if (numBytes <= BUFFER_SIZE || !(input instanceof SimpleFSIndexInput)) {+ if (true || numBytes <= BUFFER_SIZE || !(input instanceof SimpleFSIndexInput)) {super.copyBytes(input, numBytes);return;}