lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r627315 - /lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java
Date Wed, 13 Feb 2008 09:04:35 GMT
Author: mikemccand
Date: Wed Feb 13 01:04:34 2008
New Revision: 627315

URL: http://svn.apache.org/viewvc?rev=627315&view=rev
Log:
LUCENE-1044: fix CheckIndex tool to properly identify 2.4 index format

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java?rev=627315&r1=627314&r2=627315&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java Wed Feb 13 01:04:34
2008
@@ -113,9 +113,8 @@
       sFormat = "FORMAT_SINGLE_NORM_FILE [Lucene 2.2]";
     else if (format == SegmentInfos.FORMAT_SHARED_DOC_STORE)
       sFormat = "FORMAT_SHARED_DOC_STORE [Lucene 2.3]";
-    else if (format < SegmentInfos.FORMAT_CHECKSUM) {
+    else if (format == SegmentInfos.FORMAT_CHECKSUM) {
       sFormat = "FORMAT_CHECKSUM [Lucene 2.4]";
-      skip = true;
     } else if (format < SegmentInfos.FORMAT_CHECKSUM) {
       sFormat = "int=" + format + " [newer version of Lucene than this tool]";
       skip = true;



Mime
View raw message