Apache Solr open-source search software
LUCENE-1412: clarify Directory.copy javadocs: the source dir cannot change while copy is running
Michael McCandlessd02bbe2dfd2c
diff --git a/src/java/org/apache/lucene/store/Directory.java b/src/java/org/apache/lucene/store/Directory.javaindex 8355864c2b0..0147cd5c11b 100644--- a/src/java/org/apache/lucene/store/Directory.java+++ b/src/java/org/apache/lucene/store/Directory.java@@ -168,6 +168,11 @@ public abstract class Directory {* If a file in src already exists in dest then the* one in dest will be blindly overwritten.*+ * <p><b>NOTE:</b> the source directory cannot change+ * while this method is running. Otherwise the results+ * are undefined and you could easily hit a+ * FileNotFoundException.+ ** @param src source directory* @param dest destination directory* @param closeDirSrc if <code>true</code>, call {@link #close()} method on source directory