You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by yo...@apache.org on 2009/12/07 15:33:46 UTC
svn commit: r887933 - in /lucene/solr/trunk: CHANGES.txt
src/java/org/apache/solr/update/processor/LogUpdateProcessorFactory.java
Author: yonik
Date: Mon Dec 7 14:33:45 2009
New Revision: 887933
URL: http://svn.apache.org/viewvc?rev=887933&view=rev
Log:
SOLR-1628: log contains incorrect number of adds and deletes
Modified:
lucene/solr/trunk/CHANGES.txt
lucene/solr/trunk/src/java/org/apache/solr/update/processor/LogUpdateProcessorFactory.java
Modified: lucene/solr/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/CHANGES.txt?rev=887933&r1=887932&r2=887933&view=diff
==============================================================================
--- lucene/solr/trunk/CHANGES.txt (original)
+++ lucene/solr/trunk/CHANGES.txt Mon Dec 7 14:33:45 2009
@@ -107,6 +107,9 @@
* 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
----------------------
Modified: lucene/solr/trunk/src/java/org/apache/solr/update/processor/LogUpdateProcessorFactory.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/update/processor/LogUpdateProcessorFactory.java?rev=887933&r1=887932&r2=887933&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/update/processor/LogUpdateProcessorFactory.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/update/processor/LogUpdateProcessorFactory.java Mon Dec 7 14:33:45 2009
@@ -162,10 +162,10 @@
// 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) );