hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndimi...@apache.org
Subject svn commit: r1550526 - /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java
Date Thu, 12 Dec 2013 20:50:42 GMT
Author: ndimiduk
Date: Thu Dec 12 20:50:41 2013
New Revision: 1550526

URL: http://svn.apache.org/r1550526
Log:
HBASE-10116 Addendum: fix findbugs warning

Modified:
    hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java

Modified: hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java?rev=1550526&r1=1550525&r2=1550526&view=diff
==============================================================================
--- hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java
(original)
+++ hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/slab/SlabCache.java
Thu Dec 12 20:50:41 2013
@@ -179,7 +179,7 @@ public class SlabCache implements SlabIt
 
   private void addSlab(int blockSize, int numBlocks) {
     LOG.info("Creating a slab of blockSize " + blockSize + " with " + numBlocks
-        + " blocks, " + StringUtils.humanReadableInt(blockSize * numBlocks) + "bytes.");
+        + " blocks, " + StringUtils.humanReadableInt(blockSize * (long) numBlocks) + "bytes.");
     sizer.put(blockSize, new SingleSizeCache(blockSize, numBlocks, this));
   }
 



Mime
View raw message