lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1620276 - in /lucene/dev/branches/branch_4x: ./ solr/ solr/bin/ solr/core/ solr/core/src/java/org/apache/solr/update/UpdateLog.java
Date Mon, 25 Aug 2014 08:55:11 GMT
Author: uschindler
Date: Mon Aug 25 08:55:10 2014
New Revision: 1620276

URL: http://svn.apache.org/r1620276
Log:
Merged revision(s) 1620269 from lucene/dev/trunk:
Fix forbiddena-apis failure

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/solr/   (props changed)
    lucene/dev/branches/branch_4x/solr/bin/   (props changed)
    lucene/dev/branches/branch_4x/solr/core/   (props changed)
    lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/update/UpdateLog.java

Modified: lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/update/UpdateLog.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/update/UpdateLog.java?rev=1620276&r1=1620275&r2=1620276&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/update/UpdateLog.java
(original)
+++ lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/update/UpdateLog.java
Mon Aug 25 08:55:10 2014
@@ -24,7 +24,6 @@ import java.io.File;
 import java.io.FileNotFoundException;
 import java.io.FilenameFilter;
 import java.io.IOException;
-import java.text.DecimalFormat;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collection;
@@ -1272,7 +1271,7 @@ public class UpdateLog implements Plugin
                 loglog.info(
                         "log replay status {} active={} starting pos={} current pos={} current
size={} % read={}",
                         translog, activeLog, recoveryInfo.positionOfStart, cpos, csize,
-                        new DecimalFormat("###").format(cpos / (double) csize * 100));
+                        Math.round(cpos / (double) csize * 100.));
                 
               }
             }



Mime
View raw message