/* Ok: let's also see if we have old state information in the
* local DB. If we do, we may be able to avoid syncing from
* the beginning of time; and/or obtain actual key range.
*/
NodeStateStore<IpAndPort, ActiveNodeState> stateStore = _stores.getNodeStore();
ActiveNodeState initialStatus = new ActiveNodeState(_localState, nodeStatus,
_timeMaster.currentTimeMillis());
// TODO: should perhaps also find by index + range?
ActiveNodeState oldState = stateStore.findEntry(endpoint);
ClusterPeerImpl<K,E> peer = null;
// First common case: info was persisted earlier; we just "unthaw it"
if (oldState != null) {
if (oldState.equals(initialStatus)) {
peer = _createPeer(oldState);
_peers.put(endpoint, peer);
LOG.info("Restoring node {} from persisted data: no change", endpoint);
} else {
// Some changes; but is the sync range unaffected?