cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject [1/5] cassandra git commit: change list to arraylist
Date Wed, 15 Apr 2015 15:12:10 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 f7884c50e -> 730d4d4c4
  refs/heads/trunk 854406f47 -> ea6004e9a


change list to arraylist


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

Branch: refs/heads/cassandra-2.1
Commit: e3e2de0c439b2ae10e2f95074926f74b834c75a3
Parents: 84b2846
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Wed Apr 15 10:11:52 2015 -0500
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Wed Apr 15 10:11:52 2015 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/gms/Gossiper.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/e3e2de0c/src/java/org/apache/cassandra/gms/Gossiper.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/gms/Gossiper.java b/src/java/org/apache/cassandra/gms/Gossiper.java
index 85d79c0..c7c4af8 100644
--- a/src/java/org/apache/cassandra/gms/Gossiper.java
+++ b/src/java/org/apache/cassandra/gms/Gossiper.java
@@ -71,8 +71,9 @@ public class Gossiper implements IFailureDetectionEventListener, GossiperMBean
     static final ApplicationState[] STATES = ApplicationState.values();
     static final List<String> DEAD_STATES = Arrays.asList(VersionedValue.REMOVING_TOKEN,
VersionedValue.REMOVED_TOKEN,
                                                           VersionedValue.STATUS_LEFT, VersionedValue.HIBERNATE);
-    static List<String> SILENT_SHUTDOWN_STATES = DEAD_STATES;
+    static ArrayList<String> SILENT_SHUTDOWN_STATES;
     static {
+        SILENT_SHUTDOWN_STATES.addAll(DEAD_STATES);
         SILENT_SHUTDOWN_STATES.add(VersionedValue.STATUS_BOOTSTRAPPING);
     }
 


Mime
View raw message