mirror of https://github.com/apache/lucene.git
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:
parent
f2c5515c1a
commit
3a57d15799
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue