diff options
author | Alan Conway <aconway@apache.org> | 2010-02-05 23:02:45 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2010-02-05 23:02:45 +0000 |
commit | 5dd3cd3ae035673bf6003b6422712663ffa57fe5 (patch) | |
tree | 0fd603d1e693b5c75ff41a86ed0051b04fa99f02 /cpp/src/qpid/cluster/Cluster.cpp | |
parent | f5408c46da630d308f6e2a80b8b228cd398b89b4 (diff) | |
download | qpid-python-5dd3cd3ae035673bf6003b6422712663ffa57fe5.tar.gz |
Consistent connection names across a cluster.
- use the same host:port for connections and their shadows.
- add shadow property to managment connection to identify shadows.
- updated qpid-stat and qpid-cluster to filter on shadow property.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@907123 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Cluster.cpp')
-rw-r--r-- | cpp/src/qpid/cluster/Cluster.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cpp/src/qpid/cluster/Cluster.cpp b/cpp/src/qpid/cluster/Cluster.cpp index eb6428d394..e718819f48 100644 --- a/cpp/src/qpid/cluster/Cluster.cpp +++ b/cpp/src/qpid/cluster/Cluster.cpp @@ -509,10 +509,8 @@ ConnectionPtr Cluster::getConnection(const EventFrame& e, Lock&) { assert(cp); } else { // New remote connection, create a shadow. - std::ostringstream mgmtId; unsigned int ssf = (announce && announce->hasSsf()) ? announce->getSsf() : 0; - mgmtId << id; - cp = new Connection(*this, shadowOut, mgmtId.str(), id, ssf); + cp = new Connection(*this, shadowOut, announce->getManagementId(), id, ssf); } connections.insert(ConnectionMap::value_type(id, cp)); } |