Author: yonik
Date: Fri Jun 27 08:28:44 2008
New Revision: 672297
URL: http://svn.apache.org/viewvc?rev=672297&view=rev
Log:
remove numDocsDeleted, which is no longer tracked since lucene handles it
Modified:
lucene/solr/trunk/src/java/org/apache/solr/update/DirectUpdateHandler2.java
Modified:
lucene/solr/trunk/src/java/org/apache/solr/update/DirectUpdateHandler2.java
URL:
http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/update/DirectUpdateHandler2.java?rev=672297&r1=672296&r2=672297&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/update/DirectUpdateHandler2.java
(original)
+++ lucene/solr/trunk/src/java/org/apache/solr/update/DirectUpdateHandler2.java
Fri Jun 27 08:28:44 2008
@@ -127,7 +127,6 @@
AtomicLong deleteByQueryCommandsCumulative= new AtomicLong();
AtomicLong commitCommands= new AtomicLong();
AtomicLong optimizeCommands= new AtomicLong();
- AtomicLong numDocsDeleted= new AtomicLong();
AtomicLong numDocsPending= new AtomicLong();
AtomicLong numErrors = new AtomicLong();
AtomicLong numErrorsCumulative = new AtomicLong();
@@ -304,7 +303,6 @@
Query q = QueryParsing.parseQuery(cmd.query, schema);
delAll = MatchAllDocsQuery.class == q.getClass();
- int totDeleted = 0;
iwCommit.lock();
try {
if (delAll) {
@@ -318,13 +316,6 @@
iwCommit.unlock();
}
- if (!delAll) {
- if (core.log.isLoggable(Level.FINE)) {
- core.log.fine(core.getLogId()+"docs deleted by query:" + totDeleted);
- }
- numDocsDeleted.getAndAdd(totDeleted);
- }
-
madeIt=true;
if( tracker.timeUpperBound > 0 ) {
@@ -613,7 +604,6 @@
lst.add("cumulative_deletesById", deleteByIdCommandsCumulative.get());
lst.add("cumulative_deletesByQuery",
deleteByQueryCommandsCumulative.get());
lst.add("cumulative_errors", numErrorsCumulative.get());
- lst.add("docsDeleted", numDocsDeleted.get());
return lst;
}