remove numDocsDeleted, which is no longer tracked since lucene handles it

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@672297 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2008-06-27 15:28:44 +00:00
parent f2c5515c1a
commit 3a57d15799
1 changed files with 0 additions and 10 deletions

View File

@ -127,7 +127,6 @@ public class DirectUpdateHandler2 extends UpdateHandler {
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 @@ public class DirectUpdateHandler2 extends UpdateHandler {
Query q = QueryParsing.parseQuery(cmd.query, schema);
delAll = MatchAllDocsQuery.class == q.getClass();
int totDeleted = 0;
iwCommit.lock();
try {
if (delAll) {
@ -318,13 +316,6 @@ public class DirectUpdateHandler2 extends UpdateHandler {
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 @@ public class DirectUpdateHandler2 extends UpdateHandler {
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;
}