lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r476371 - in /lucene/java/trunk/src: java/org/apache/lucene/index/SegmentInfo.java test/org/apache/lucene/index/TestIndexFileDeleter.java
Date Fri, 17 Nov 2006 23:43:48 GMT
Author: mikemccand
Date: Fri Nov 17 15:43:47 2006
New Revision: 476371

URL: http://svn.apache.org/viewvc?view=rev&rev=476371
Log:
Lockless commits: LUCENE-701

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java
    lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexFileDeleter.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java?view=diff&rev=476371&r1=476370&r2=476371
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/SegmentInfo.java Fri Nov 17 15:43:47
2006
@@ -28,10 +28,10 @@
   public Directory dir;				  // where segment resides
 
   private boolean preLockless;                    // true if this is a segments file written
before
-                                                  // lock-less commits (XXX)
+                                                  // lock-less commits (2.1)
 
   private long delGen;                            // current generation of del file; -1 if
there
-                                                  // are no deletes; 0 if it's a pre-XXX
segment
+                                                  // are no deletes; 0 if it's a pre-2.1
segment
                                                   // (and we must check filesystem); 1 or
higher if
                                                   // there are deletes at generation N
    
@@ -41,7 +41,7 @@
                                                   // there are no separate norms
 
   private byte isCompoundFile;                    // -1 if it is not; 1 if it is; 0 if it's
-                                                  // pre-XXX (ie, must check file system
to see
+                                                  // pre-2.1 (ie, must check file system
to see
                                                   // if <name>.cfs exists)        

 
   public SegmentInfo(String name, int docCount, Directory dir) {
@@ -98,7 +98,7 @@
   
   void setNumField(int numField) {
     if (normGen == null) {
-      // normGen is null if we loaded a pre-XXX segment
+      // normGen is null if we loaded a pre-2.1 segment
       // file, or, if this segments file hasn't had any
       // norms set against it yet:
       normGen = new long[numField];
@@ -285,7 +285,7 @@
    *
    * @param directory directory to check.  This parameter is
    * only used when the segment was written before version
-   * XXX (at which point compound file or not became stored
+   * 2.1 (at which point compound file or not became stored
    * in the segments info file).
    */
   boolean getUseCompoundFile() throws IOException {

Modified: lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexFileDeleter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexFileDeleter.java?view=diff&rev=476371&r1=476370&r2=476371
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexFileDeleter.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/index/TestIndexFileDeleter.java Fri Nov 17
15:43:47 2006
@@ -23,7 +23,7 @@
 import java.util.zip.*;
 
 /*
-  Verify we can read the pre-XXX file format, do searches
+  Verify we can read the pre-2.1 file format, do searches
   against it, and add documents to it.
 */
 



Mime
View raw message