summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2009-05-18 19:11:52 +0000
committerTed Ross <tross@apache.org>2009-05-18 19:11:52 +0000
commit0ef149652fd215df193a917bfdd2278145f6de43 (patch)
tree747e3b5cd1e0353b91f34a7a541e7db7685eec40 /cpp
parenta4be3f4df943ec661040acdcca429c7734eca381 (diff)
downloadqpid-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.cpp5
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();
+ }
}
};