From 47b7d230566810cd84446859b63885329186e943 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 26 Sep 2008 21:49:52 +0000 Subject: Clean up end-of-dump protocol for new cluster members. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@699513 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/Cluster.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/cluster/Cluster.cpp') diff --git a/cpp/src/qpid/cluster/Cluster.cpp b/cpp/src/qpid/cluster/Cluster.cpp index 9cd8d1842c..19f4318a9c 100644 --- a/cpp/src/qpid/cluster/Cluster.cpp +++ b/cpp/src/qpid/cluster/Cluster.cpp @@ -91,9 +91,12 @@ Cluster::Cluster(const std::string& name_, const Url& url_, broker::Broker& b) : Cluster::~Cluster() {} -void Cluster::insert(const boost::intrusive_ptr& c) { handler->insert(c); } +void Cluster::insert(const boost::intrusive_ptr& c) { + Mutex::ScopedLock l(lock); + connections.insert(Cluster::ConnectionMap::value_type(c->getId(), c)); +} -void Cluster::catchUpClosed(const boost::intrusive_ptr& c) { handler->catchUpClosed(c); } +void Cluster::dumpComplete() { handler->dumpComplete(); } void Cluster::erase(ConnectionId id) { Mutex::ScopedLock l(lock); -- cgit v1.2.1