cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject cassandra git commit: do or do not, there is no try
Date Thu, 12 Feb 2015 19:19:30 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 732e00638 -> 97acfb091


do or do not, there is no try


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

Branch: refs/heads/trunk
Commit: 97acfb091732369e935fd4bab20080b36f7396f7
Parents: 732e006
Author: Brandon Williams <brandonwilliams@apache.org>
Authored: Thu Feb 12 13:19:25 2015 -0600
Committer: Brandon Williams <brandonwilliams@apache.org>
Committed: Thu Feb 12 13:19:25 2015 -0600

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


http://git-wip-us.apache.org/repos/asf/cassandra/blob/97acfb09/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 111536c..c34793c 100644
--- a/src/java/org/apache/cassandra/gms/Gossiper.java
+++ b/src/java/org/apache/cassandra/gms/Gossiper.java
@@ -171,7 +171,7 @@ public class Gossiper implements IFailureDetectionEventListener, GossiperMBean
 
                        See CASSANDRA-150 for more exposition. */
                     if (!gossipedToSeed || liveEndpoints.size() < seeds.size())
-                        doGossipToSeed(message);
+                        maybeGossipToSeed(message);
 
                     doStatusCheck();
                 }
@@ -629,8 +629,8 @@ public class Gossiper implements IFailureDetectionEventListener, GossiperMBean
         }
     }
 
-    /* Gossip to a seed for facilitating partition healing */
-    private void doGossipToSeed(MessageOut<GossipDigestSyn> prod)
+    /* Possibly gossip to a seed for facilitating partition healing */
+    private void maybeGossipToSeed(MessageOut<GossipDigestSyn> prod)
     {
         int size = seeds.size();
         if (size > 0)


Mime
View raw message