You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2010/11/05 19:17:06 UTC

svn commit: r1031689 - /lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/CheckIndex.java

Author: mikemccand
Date: Fri Nov  5 18:17:06 2010
New Revision: 1031689

URL: http://svn.apache.org/viewvc?rev=1031689&view=rev
Log:
LUCENE-2744: only print number of fields w/ norms on 'test: norms....' CheckIndex output

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

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/CheckIndex.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/CheckIndex.java?rev=1031689&r1=1031688&r2=1031689&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/CheckIndex.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/CheckIndex.java Fri Nov  5 18:17:06 2010
@@ -552,8 +552,8 @@ public class CheckIndex {
       for (final String fieldName : fieldNames) {
         if (reader.hasNorms(fieldName)) {
           reader.norms(fieldName, b, 0);
+          ++status.totFields;
         }
-        ++status.totFields;
       }
 
       msg("OK [" + status.totFields + " fields]");