From e520915a8161af6fb39ff3fc68924f0e4b87da85 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 10 Feb 2009 22:16:05 +0000 Subject: 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 --- cpp/src/qpid/cluster/ConnectionMap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/cluster/ConnectionMap.cpp') 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 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; -- cgit v1.2.1