mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-2.2' into cassandra-3.0
This commit is contained in:
commit
e817c83bc0
|
|
@ -871,8 +871,9 @@ public class Gossiper implements IFailureDetectionEventListener, GossiperMBean
|
||||||
* than the version passed in. In this case we also send the old
|
* 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.
|
* heart beat and throw it away on the receiver if it is redundant.
|
||||||
*/
|
*/
|
||||||
int localHbGeneration = epState.getHeartBeatState().getGeneration();
|
HeartBeatState heartBeatState = epState.getHeartBeatState();
|
||||||
int localHbVersion = epState.getHeartBeatState().getHeartBeatVersion();
|
int localHbGeneration = heartBeatState.getGeneration();
|
||||||
|
int localHbVersion = heartBeatState.getHeartBeatVersion();
|
||||||
if (localHbVersion > version)
|
if (localHbVersion > version)
|
||||||
{
|
{
|
||||||
reqdEndpointState = new EndpointState(new HeartBeatState(localHbGeneration, localHbVersion));
|
reqdEndpointState = new EndpointState(new HeartBeatState(localHbGeneration, localHbVersion));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue