Merge branch 'cassandra-3.11' into trunk

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

View File

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