mirror of https://github.com/apache/cassandra
Gossiper notifies of local state changes.
Patch by Sam Overton, reviewed by brandonwilliams for CASSANDRA-2948 git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.8@1151659 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d033b1f8e7
commit
2b3e73da72
|
|
@ -981,6 +981,7 @@ public class Gossiper implements IFailureDetectionEventListener
|
|||
EndpointState epState = endpointStateMap.get(FBUtilities.getLocalAddress());
|
||||
assert epState != null;
|
||||
epState.addApplicationState(state, value);
|
||||
doNotifications(FBUtilities.getLocalAddress(), state, value);
|
||||
}
|
||||
|
||||
public void stop()
|
||||
|
|
|
|||
|
|
@ -1913,7 +1913,7 @@ public class StorageService implements IEndpointStateChangeSubscriber, StorageSe
|
|||
|
||||
// ring ranges and endpoints associated with them
|
||||
// this used to determine what nodes should we ping about range data
|
||||
Multimap<Range, InetAddress> rangeAddresses = strategy.getRangeAddresses(tokenMetaClone);
|
||||
Multimap<Range, InetAddress> rangeAddresses = strategy.getRangeAddresses(tokenMetadata_);
|
||||
|
||||
// calculated parts of the ranges to request/stream from/to nodes in the ring
|
||||
Pair<Set<Range>, Set<Range>> rangesPerTable = calculateStreamAndFetchRanges(currentRanges, updatedRanges);
|
||||
|
|
|
|||
Loading…
Reference in New Issue