diff options
author | Alan Conway <aconway@apache.org> | 2008-09-21 05:04:04 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-09-21 05:04:04 +0000 |
commit | 558e92d6c9cf8dfb875c1250ab8fe1cefaf30b05 (patch) | |
tree | 9b306597ee07b264fa18580546ed5645f0c3766d /cpp/src/qpid/cluster/MemberHandler.cpp | |
parent | 7c70d21ca2d788d4432cfa89851c9b928c9f30aa (diff) | |
download | qpid-python-558e92d6c9cf8dfb875c1250ab8fe1cefaf30b05.tar.gz |
DumpClient send connections & session IDs to new members.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@697446 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/MemberHandler.cpp')
-rw-r--r-- | cpp/src/qpid/cluster/MemberHandler.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/qpid/cluster/MemberHandler.cpp b/cpp/src/qpid/cluster/MemberHandler.cpp index 1997ced9b0..ec9e7790c5 100644 --- a/cpp/src/qpid/cluster/MemberHandler.cpp +++ b/cpp/src/qpid/cluster/MemberHandler.cpp @@ -47,7 +47,6 @@ void MemberHandler::configChange( } void MemberHandler::deliver(Event& e) { - e.setConnection(cluster.getConnection(e.getConnectionId())); cluster.connectionEventQueue.push(e); } @@ -64,7 +63,7 @@ void MemberHandler::dumpRequest(const MemberId& dumpee, const std::string& urlSt cluster.stall(); if (dumpThread.id()) dumpThread.join(); // Join the last dumpthread. - dumpThread = Thread(new DumpClient(Url(urlStr), cluster.broker, + dumpThread = Thread(new DumpClient(Url(urlStr), cluster, boost::bind(&MemberHandler::dumpSent, this), boost::bind(&MemberHandler::dumpError, this, _1))); } @@ -92,4 +91,9 @@ void MemberHandler::insert(const boost::intrusive_ptr<Connection>& c) { cluster.connections[c->getId()] = c; } +void MemberHandler::catchUpClosed(const boost::intrusive_ptr<Connection>& c) { + QPID_LOG(warning, "Catch-up connection " << c << " closed in member mode"); + assert(0); +} + }} // namespace qpid::cluster |