SOLR-1628: log contains incorrect number of adds and deletes

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@887933 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2009-12-07 14:33:45 +00:00
parent 7f26fd8e90
commit ac47aa00b2
2 changed files with 5 additions and 2 deletions

View File

@ -107,6 +107,9 @@ Bug Fixes
* SOLR-1615: Backslash escaping did not work in quoted strings
for local param arguments. (Wojtek Piaseczny, yonik)
* SOLR-1628: log contains incorrect number of adds and deletes.
(Thijs Vonk via yonik)
Other Changes
----------------------

View File

@ -162,10 +162,10 @@ class LogUpdateProcessor extends UpdateRequestProcessor {
// if id lists were truncated, show how many more there were
if (adds != null && numAdds > maxNumToLog) {
adds.add("... (" + adds.size() + " added)");
adds.add("... (" + numAdds + " adds)");
}
if (deletes != null && numDeletes > maxNumToLog) {
deletes.add("... (" + deletes.size() + " removed)");
deletes.add("... (" + numDeletes + " deletes)");
}
long elapsed = rsp.getEndTime() - req.getStartTime();
log.info( ""+toLog + " 0 " + (elapsed) );