cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject cassandra git commit: simplify: iterate over the values collection
Date Tue, 10 Feb 2015 03:00:11 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk afee0229e -> 307e4f242


simplify: iterate over the values collection


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

Branch: refs/heads/trunk
Commit: 307e4f24294f659239d55e8b43637104cbc0a713
Parents: afee022
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Mon Feb 9 21:59:34 2015 -0500
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Mon Feb 9 21:59:34 2015 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/Keyspace.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/307e4f24/src/java/org/apache/cassandra/db/Keyspace.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/Keyspace.java b/src/java/org/apache/cassandra/db/Keyspace.java
index b34d589..bffddc6 100644
--- a/src/java/org/apache/cassandra/db/Keyspace.java
+++ b/src/java/org/apache/cassandra/db/Keyspace.java
@@ -425,8 +425,8 @@ public class Keyspace
     public List<Future<?>> flush()
     {
         List<Future<?>> futures = new ArrayList<>(columnFamilyStores.size());
-        for (UUID cfId : columnFamilyStores.keySet())
-            futures.add(columnFamilyStores.get(cfId).forceFlush());
+        for (ColumnFamilyStore cfs : columnFamilyStores.values())
+            futures.add(cfs.forceFlush());
         return futures;
     }
 


Mime
View raw message