diff options
author | Ted Ross <tross@apache.org> | 2009-05-18 19:11:52 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2009-05-18 19:11:52 +0000 |
commit | 0ef149652fd215df193a917bfdd2278145f6de43 (patch) | |
tree | 747e3b5cd1e0353b91f34a7a541e7db7685eec40 /cpp | |
parent | a4be3f4df943ec661040acdcca429c7734eca381 (diff) | |
download | qpid-python-0ef149652fd215df193a917bfdd2278145f6de43.tar.gz |
Block unsafe management methods only if clustering is enabled
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@776057 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/qpid/cluster/ClusterPlugin.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/qpid/cluster/ClusterPlugin.cpp b/cpp/src/qpid/cluster/ClusterPlugin.cpp index 1bebbe7a43..cb1212505b 100644 --- a/cpp/src/qpid/cluster/ClusterPlugin.cpp +++ b/cpp/src/qpid/cluster/ClusterPlugin.cpp @@ -160,9 +160,10 @@ struct ClusterPlugin : public Plugin { void initialize(Plugin::Target& target) { Broker* broker = dynamic_cast<Broker*>(&target); - disallowManagementMethods(broker->getManagementAgent()); - if (broker && cluster) + if (broker && cluster) { + disallowManagementMethods(broker->getManagementAgent()); cluster->initialize(); + } } }; |