cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject git commit: presize collection
Date Sat, 15 Mar 2014 05:36:39 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk b78cf8bee -> 593bd619a


presize collection


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/593bd619
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/593bd619
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/593bd619

Branch: refs/heads/trunk
Commit: 593bd619acff2303e648b48d8a630dfc8d65be93
Parents: b78cf8b
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Sat Mar 15 01:35:24 2014 -0400
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Sat Mar 15 01:35:24 2014 -0400

----------------------------------------------------------------------
 .../cassandra/db/compaction/SizeTieredCompactionStrategy.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/593bd619/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java
b/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java
index 63d983c..1fa5ff8 100644
--- a/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java
+++ b/src/java/org/apache/cassandra/db/compaction/SizeTieredCompactionStrategy.java
@@ -242,7 +242,7 @@ public class SizeTieredCompactionStrategy extends AbstractCompactionStrategy
 
     private static Map<SSTableReader, Double> getHotnessMap(Collection<SSTableReader>
sstables)
     {
-        Map<SSTableReader, Double> hotness = new HashMap<>();
+        Map<SSTableReader, Double> hotness = new HashMap<>(sstables.size());
         for (SSTableReader sstable : sstables)
             hotness.put(sstable, hotness(sstable));
         return hotness;


Mime
View raw message