diff options
author | Alan Conway <aconway@apache.org> | 2009-02-10 22:16:05 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-02-10 22:16:05 +0000 |
commit | e520915a8161af6fb39ff3fc68924f0e4b87da85 (patch) | |
tree | f89de3b76b7a9ef172f57c24bc04371e6855fa02 /cpp/src/qpid/cluster/ConnectionMap.cpp | |
parent | f6f6916d3a631240f08f9d9fedf5c3b5f71883aa (diff) | |
download | qpid-python-e520915a8161af6fb39ff3fc68924f0e4b87da85.tar.gz |
Remove unused class and clean up some FIXME comments.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@743131 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/ConnectionMap.cpp')
-rw-r--r-- | cpp/src/qpid/cluster/ConnectionMap.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/ConnectionMap.cpp b/cpp/src/qpid/cluster/ConnectionMap.cpp index ed2fa94412..064e3cd252 100644 --- a/cpp/src/qpid/cluster/ConnectionMap.cpp +++ b/cpp/src/qpid/cluster/ConnectionMap.cpp @@ -56,7 +56,8 @@ ConnectionMap::ConnectionPtr ConnectionMap::get(const ConnectionId& id) { mgmtId << id; ConnectionPtr cp = new Connection(cluster, shadowOut, mgmtId.str(), id); std::pair<Map::iterator, bool> ib = map.insert(Map::value_type(id, cp)); - assert(ib.second); // FIXME aconway 2009-02-03: exception. + if (!ib.second) + throw InternalErrorException(QPID_MSG("Duplicate entry in cluster connection map: " << id)); i = ib.first; } return i->second; |