mirror of https://github.com/apache/lucene.git
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:
parent
9c011b1b33
commit
a7dda11801
|
@ -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
|
||||
|
||||
|
|
|
@ -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: */
|
||||
|
|
Loading…
Reference in New Issue