revert LUCENE-415, it's not needed for lucene 2.0

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@416424 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2006-06-22 17:22:06 +00:00
parent 9c011b1b33
commit a7dda11801
2 changed files with 2 additions and 13 deletions

View File

@ -52,11 +52,7 @@ Bug fixes
8. LUCENE-607: ParallelReader's TermEnum fails to advance properly to 8. LUCENE-607: ParallelReader's TermEnum fails to advance properly to
new fields (Chuck Williams, Christian Kohlschuetter via Yonik Seeley) new fields (Chuck Williams, Christian Kohlschuetter via Yonik Seeley)
9. LUCENE-415: A previously unclean shutdown during indexing can cause 9. LUCENE-610: Simple syntax change to allow compilation with ecj :
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 :
disambiguate inner class scorer's use of doc() in BooleanScorer2. disambiguate inner class scorer's use of doc() in BooleanScorer2.
(DM Smith via Yonik Seeley) (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 API Changes

View File

@ -496,13 +496,6 @@ class FSIndexOutput extends BufferedIndexOutput {
public FSIndexOutput(File path) throws IOException { public FSIndexOutput(File path) throws IOException {
file = new RandomAccessFile(path, "rw"); 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: */ /** output methods: */