lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r416424 - in /lucene/java/trunk: CHANGES.txt src/java/org/apache/lucene/store/FSDirectory.java
Date Thu, 22 Jun 2006 17:22:06 GMT
Author: yonik
Date: Thu Jun 22 10:22:06 2006
New Revision: 416424

URL: http://svn.apache.org/viewvc?rev=416424&view=rev
Log:
revert LUCENE-415, it's not needed for lucene 2.0

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=416424&r1=416423&r2=416424&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Thu Jun 22 10:22:06 2006
@@ -52,11 +52,7 @@
  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 @@
 
 
 
-Release 2.0.0 2005-05-26
+Release 2.0.0 2006-05-26
 
 API Changes
 

Modified: lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java?rev=416424&r1=416423&r2=416424&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/store/FSDirectory.java Thu Jun 22 10:22:06
2006
@@ -496,13 +496,6 @@
 
   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: */



Mime
View raw message