Add ping(), and a logic fix in SelfAwareness.

This commit is contained in:
Adam Ierymenko 2015-04-07 12:32:05 -07:00
parent 24608d5ca3
commit 0a90681849
2 changed files with 20 additions and 1 deletions

View file

@ -78,7 +78,9 @@ void SelfAwareness::iam(const InetAddress &reporterPhysicalAddress,const InetAdd
else {
Mutex::Lock _l(_lock);
InetAddress &lastPhy = _lastPhysicalAddress[scope - 1];
if ((lastPhy)&&(lastPhy != myPhysicalAddress)) {
if (!lastPhy) {
lastPhy = myPhysicalAddress;
} else if (lastPhy != myPhysicalAddress) {
lastPhy = myPhysicalAddress;
_ResetWithinScope rset(RR,RR->node->now(),(InetAddress::IpScope)scope);
RR->topology->eachPeer<_ResetWithinScope &>(rset);