lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r773190 - in /lucene/java/trunk/src: java/org/apache/lucene/index/CheckIndex.java test/org/apache/lucene/index/TestCheckIndex.java
Date Sat, 09 May 2009 10:21:41 GMT
Author: mikemccand
Date: Sat May  9 10:21:41 2009
New Revision: 773190

URL: http://svn.apache.org/viewvc?rev=773190&view=rev
Log:
LUCENE-1625: properly set openReaderPassed in CheckIndex

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/CheckIndex.java
    lucene/java/trunk/src/test/org/apache/lucene/index/TestCheckIndex.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=773190&r1=773189&r2=773190&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 Sat May  9 10:21:41
2009
@@ -393,6 +393,9 @@
         if (infoStream != null)
           infoStream.print("    test: open reader.........");
         reader = SegmentReader.get(info);
+
+        segInfoStat.openReaderPassed = true;
+
         final int numDocs = reader.numDocs();
         toLoseDocCount = numDocs;
         if (reader.hasDeletions()) {

Modified: lucene/java/trunk/src/test/org/apache/lucene/index/TestCheckIndex.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/TestCheckIndex.java?rev=773190&r1=773189&r2=773190&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/index/TestCheckIndex.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/index/TestCheckIndex.java Sat May  9 10:21:41
2009
@@ -55,6 +55,8 @@
       System.out.println(bos.toString());
       fail();
     }
+    assertTrue(((CheckIndex.Status.SegmentInfoStatus) indexStatus.segmentInfos.get(0)).openReaderPassed);
+
     final List onlySegments = new ArrayList();
     onlySegments.add("_0");
     



Mime
View raw message