diff --git a/CHANGES.txt b/CHANGES.txt index e270cdbf4bd..9db27f4ee75 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -52,11 +52,7 @@ Bug fixes 8. LUCENE-607: ParallelReader's TermEnum fails to advance properly to new fields (Chuck Williams, Christian Kohlschuetter via Yonik Seeley) - 9. LUCENE-415: A previously unclean shutdown during indexing can cause - a non-empty segment file to be re-used, causing index corruption. - (Andy Hind via Yonik Seeley) - -10. LUCENE-610: Simple syntax change to allow compilation with ecj : + 9. LUCENE-610: Simple syntax change to allow compilation with ecj : disambiguate inner class scorer's use of doc() in BooleanScorer2. (DM Smith via Yonik Seeley) @@ -68,7 +64,7 @@ Optimizations -Release 2.0.0 2005-05-26 +Release 2.0.0 2006-05-26 API Changes diff --git a/src/java/org/apache/lucene/store/FSDirectory.java b/src/java/org/apache/lucene/store/FSDirectory.java index bea618a5c4a..88cbe5ea457 100644 --- a/src/java/org/apache/lucene/store/FSDirectory.java +++ b/src/java/org/apache/lucene/store/FSDirectory.java @@ -496,13 +496,6 @@ class FSIndexOutput extends BufferedIndexOutput { public FSIndexOutput(File path) throws IOException { file = new RandomAccessFile(path, "rw"); - if (file.length() == 0) { - // This can happen if there was a previous crash / unclean shutdown that - // left files around, then we end up re-using a segment name. - // If we have a logging framework in the future, a warning here might be - // a good idea. - file.setLength(0); - } } /** output methods: */