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:
Brandon Williams 2011-07-27 22:47:02 +00:00
parent d033b1f8e7
commit 2b3e73da72
2 changed files with 2 additions and 1 deletions

View File

@ -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()

View File

@ -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);