From ce41c9d094746451b674bebe5edb4e61116e77c2 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Fri, 23 Apr 2010 21:00:10 +0000 Subject: Code cleanup - Removed IdAllocator (it's no longer needed) - Cleaned up the calls to ManagementAgent::addObject to handle durable objects - Removed the deferred call to addObject for durable objects - Removed unneeded calls to self._checkClosed() in qmf.console.Agent git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@937516 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/Link.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'cpp/src/qpid/broker/Link.cpp') diff --git a/cpp/src/qpid/broker/Link.cpp b/cpp/src/qpid/broker/Link.cpp index cdba18ccf9..c88cabbda7 100644 --- a/cpp/src/qpid/broker/Link.cpp +++ b/cpp/src/qpid/broker/Link.cpp @@ -74,8 +74,7 @@ Link::Link(LinkRegistry* _links, if (agent != 0) { mgmtObject = new _qmf::Link(agent, this, parent, _host, _port, _transport, _durable); - if (!durable) - agent->addObject(mgmtObject); + agent->addObject(mgmtObject, 0, durable); } } setStateLH(STATE_WAITING); @@ -353,10 +352,6 @@ void Link::notifyConnectionForced(const string text) void Link::setPersistenceId(uint64_t id) const { - if (mgmtObject != 0 && persistenceId == 0) { - ManagementAgent* agent = broker->getManagementAgent(); - agent->addObject(mgmtObject, id); - } persistenceId = id; } -- cgit v1.2.1