lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r1620269 - /lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/UpdateLog.java
Date Mon, 25 Aug 2014 07:37:53 GMT
Author: uschindler
Date: Mon Aug 25 07:37:53 2014
New Revision: 1620269

URL: http://svn.apache.org/r1620269
Log:
Fix forbiddena-apis failure

Modified:
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/UpdateLog.java

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/UpdateLog.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/UpdateLog.java?rev=1620269&r1=1620268&r2=1620269&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/UpdateLog.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/update/UpdateLog.java Mon Aug 25 07:37:53
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