jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r469485 - /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
Date Tue, 31 Oct 2006 13:58:11 GMT
Author: mreutegg
Date: Tue Oct 31 05:58:10 2006
New Revision: 469485

URL: http://svn.apache.org/viewvc?view=rev&rev=469485
Log:
- only show progress for more than 10 nodes

Modified:
    jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java?view=diff&rev=469485&r1=469484&r2=469485
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/ConsistencyCheck.java
Tue Oct 31 05:58:10 2006
@@ -155,7 +155,7 @@
         IndexReader reader = index.getIndexReader();
         try {
             for (int i = 0; i < reader.maxDoc(); i++) {
-                if (i > 0 && i % (reader.maxDoc() / 5) == 0) {
+                if (i > 10 && i % (reader.maxDoc() / 5) == 0) {
                     long progress = Math.round((100.0 * (float) i) / ((float) reader.maxDoc()
* 2f));
                     log.info("progress: " + progress + "%");
                 }
@@ -185,7 +185,7 @@
         try {
             // run through documents again and check parent
             for (int i = 0; i < reader.maxDoc(); i++) {
-                if (i > 0 && i % (reader.maxDoc() / 5) == 0) {
+                if (i > 10 && i % (reader.maxDoc() / 5) == 0) {
                     long progress = Math.round((100.0 * (float) i) / ((float) reader.maxDoc()
* 2f));
                     log.info("progress: " + (progress + 50) + "%");
                 }



Mime
View raw message