diff options
author | Ted Ross <tross@apache.org> | 2008-12-10 22:06:57 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2008-12-10 22:06:57 +0000 |
commit | 0c2cb42f6c8fc93184b381a34c4a8c16e6d7759b (patch) | |
tree | 1c2b52e3fb7414dd383ab6e06e7a77de540abd34 /cpp/src | |
parent | 8f570e706afbf3b58bf1b85e40c0285b2fd15301 (diff) | |
download | qpid-python-0c2cb42f6c8fc93184b381a34c4a8c16e6d7759b.tar.gz |
QPID-1449 - Added federation tag that was missing when management was disabled
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@725456 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/broker/Broker.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/Broker.cpp b/cpp/src/qpid/broker/Broker.cpp index 0ae6106f57..f7fe05e860 100644 --- a/cpp/src/qpid/broker/Broker.cpp +++ b/cpp/src/qpid/broker/Broker.cpp @@ -182,6 +182,11 @@ Broker::Broker(const Broker::Options& conf) : queues.setParent(vhost); exchanges.setParent(vhost); links.setParent(vhost); + } else { + // Management is disabled so there is no broker management ID. + // Create a unique uuid to use as the federation tag. + framing::Uuid uuid(true); + federationTag = uuid.str(); } QueuePolicy::setDefaultMaxSize(conf.queueLimit); |