From 4db96f7ad47c69982cdc6cf7b5e5c47b00f1144b Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Fri, 1 Feb 2008 18:02:42 +0000 Subject: Cluster code fixed for changes in codebase. - Using SessionManager::Observer - Better ais test setup, only need to be member of ais group. - Update cluster_client - SessionState holds handler chains. - Cluster frames include next handler ptr. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@617582 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SessionManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/broker/SessionManager.cpp') diff --git a/cpp/src/qpid/broker/SessionManager.cpp b/cpp/src/qpid/broker/SessionManager.cpp index aadb2b9004..571d3365db 100644 --- a/cpp/src/qpid/broker/SessionManager.cpp +++ b/cpp/src/qpid/broker/SessionManager.cpp @@ -43,12 +43,13 @@ SessionManager::SessionManager(uint32_t a) : ack(a) {} SessionManager::~SessionManager() {} +// FIXME aconway 2008-02-01: pass handler*, allow open unattached. std::auto_ptr SessionManager::open( SessionHandler& h, uint32_t timeout_) { Mutex::ScopedLock l(lock); std::auto_ptr session( - new SessionState(*this, h, timeout_, ack)); + new SessionState(this, &h, timeout_, ack)); active.insert(session->getId()); for_each(observers.begin(), observers.end(), boost::bind(&Observer::opened, _1,boost::ref(*session))); -- cgit v1.2.1