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 | ce41c9d094746451b674bebe5edb4e61116e77c2 (patch) | |
| tree | 7083ac3b3ef29835053e128047b1baa671cec2c2 /cpp/src/qpid/broker/Link.cpp | |
| parent | 74b68e0be99c74b8f59ef97a3a9162d5a8dfe257 (diff) | |
| download | qpid-python-ce41c9d094746451b674bebe5edb4e61116e77c2.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; } |
