diff options
| author | Alan Conway <aconway@apache.org> | 2011-01-18 20:43:41 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2011-01-18 20:43:41 +0000 |
| commit | be6297381c3272178a43940ccf81986073e5ad9f (patch) | |
| tree | d71771c2cf490b27bf068ef2644f98ced45426d6 /cpp/src/qpid/broker/LinkRegistry.cpp | |
| parent | 7db454bc1eae3744c676fe9e8ddd6e999cee13f1 (diff) | |
| download | qpid-python-be6297381c3272178a43940ccf81986073e5ad9f.tar.gz | |
QPID-2982 Bug 669452 - Creating a route and using management tools can crash cluster members.
Cluster update did not include federation link and bridge
objects. Fixed update to include them.
Management linkUp and linkDown events were generated only on the
broker receiving the link. Suppressed these events in a cluster.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1060568 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/LinkRegistry.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/LinkRegistry.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/LinkRegistry.cpp b/cpp/src/qpid/broker/LinkRegistry.cpp index ea14552cc1..82f1f0ea24 100644 --- a/cpp/src/qpid/broker/LinkRegistry.cpp +++ b/cpp/src/qpid/broker/LinkRegistry.cpp @@ -379,3 +379,12 @@ void LinkRegistry::setPassive(bool p) passive = p; //will activate or passivate links on maintenance visit } + +void LinkRegistry::eachLink(boost::function<void(boost::shared_ptr<Link>)> f) { + for (LinkMap::iterator i = links.begin(); i != links.end(); ++i) f(i->second); +} + +void LinkRegistry::eachBridge(boost::function<void(boost::shared_ptr<Bridge>)> f) { + for (BridgeMap::iterator i = bridges.begin(); i != bridges.end(); ++i) f(i->second); +} + |
