Merge branch 'cassandra-2.2' into cassandra-3.0

This commit is contained in:
Jason Brown 2017-08-29 08:28:09 -07:00
commit e817c83bc0
1 changed files with 3 additions and 2 deletions

View File

@ -871,8 +871,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));