summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/Cluster.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-09-26 21:49:52 +0000
committerAlan Conway <aconway@apache.org>2008-09-26 21:49:52 +0000
commit47b7d230566810cd84446859b63885329186e943 (patch)
tree121e22b2c8c84f27dee0c2b5aff6542075ea99a8 /cpp/src/qpid/cluster/Cluster.cpp
parent41b2637e20345f264cff40be2885729c315e5828 (diff)
downloadqpid-python-47b7d230566810cd84446859b63885329186e943.tar.gz
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
Diffstat (limited to 'cpp/src/qpid/cluster/Cluster.cpp')
-rw-r--r--cpp/src/qpid/cluster/Cluster.cpp7
1 files changed, 5 insertions, 2 deletions
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<Connection>& c) { handler->insert(c); }
+void Cluster::insert(const boost::intrusive_ptr<Connection>& c) {
+ Mutex::ScopedLock l(lock);
+ connections.insert(Cluster::ConnectionMap::value_type(c->getId(), c));
+}
-void Cluster::catchUpClosed(const boost::intrusive_ptr<Connection>& c) { handler->catchUpClosed(c); }
+void Cluster::dumpComplete() { handler->dumpComplete(); }
void Cluster::erase(ConnectionId id) {
Mutex::ScopedLock l(lock);