cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jasobr...@apache.org
Subject [03/12] cassandra git commit: followup to CASSANDRA-13700; minor cleanup
Date Tue, 29 Aug 2017 15:26:58 GMT
followup to CASSANDRA-13700; minor cleanup

Patch by jasobrown; reviewed by Joel Knighton for CASSANDRA-13700


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

Branch: refs/heads/cassandra-3.11
Commit: 6b927783ba0777d3dd7c2c3311b246a8dbce5b59
Parents: a3498d5
Author: Jason Brown <jasedbrown@gmail.com>
Authored: Tue Aug 29 07:52:40 2017 -0700
Committer: Jason Brown <jasedbrown@gmail.com>
Committed: Tue Aug 29 07:52:40 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/cassandra/blob/6b927783/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 7c37917..d3db37f 100644
--- a/src/java/org/apache/cassandra/gms/Gossiper.java
+++ b/src/java/org/apache/cassandra/gms/Gossiper.java
@@ -860,8 +860,9 @@ public class Gossiper implements IFailureDetectionEventListener, GossiperMBean
              * than the version passed in. In this case we also send the old
              * heart beat and throw it away on the receiver if it is redundant.
             */
-            int localHbGeneration = epState.getHeartBeatState().getGeneration();
-            int localHbVersion = epState.getHeartBeatState().getHeartBeatVersion();
+            HeartBeatState heartBeatState = epState.getHeartBeatState();
+            int localHbGeneration = heartBeatState.getGeneration();
+            int localHbVersion = heartBeatState.getHeartBeatVersion();
             if (localHbVersion > version)
             {
                 reqdEndpointState = new EndpointState(new HeartBeatState(localHbGeneration,
localHbVersion));


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


Mime
View raw message