diff options
| author | Ted Ross <tross@apache.org> | 2010-04-23 21:00:10 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2010-04-23 21:00:10 +0000 |
| commit | 270e61fe330198d1d3262d8d1af2afac6f2d1d2e (patch) | |
| tree | 7083ac3b3ef29835053e128047b1baa671cec2c2 /cpp/src/qpid/broker/Link.cpp | |
| parent | c9ae79978aab2ae74c03be893d5ed76cb5c1203a (diff) | |
| download | qpid-python-270e61fe330198d1d3262d8d1af2afac6f2d1d2e.tar.gz | |
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
Diffstat (limited to 'cpp/src/qpid/broker/Link.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/Link.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
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; } |
