Skip to content

Commit

Permalink
Merge "NodeStatusUVE should be sent only if there is any change"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 24, 2016
2 parents 9c4c00e + 1309ffe commit 1c0e5c8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/base/connection_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ void ConnectionState::UpdateInternal(ConnectionType::type ctype,
ConnectionInfoMap::iterator it = connection_map_.find(key);
if (it != connection_map_.end()) {
// Update
if (it->second.server_addrs == info.server_addrs &&
it->second.status == info.status &&
it->second.description == info.description) {
// Do not send UVE if there is no change in the server_addrs,
// status or description
return;
}
it->second = info;
} else {
// Add
Expand Down

0 comments on commit 1c0e5c8

Please sign in to comment.