From 0c2cb42f6c8fc93184b381a34c4a8c16e6d7759b Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Wed, 10 Dec 2008 22:06:57 +0000 Subject: 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 --- cpp/src/qpid/broker/Broker.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpp/src') 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); -- cgit v1.2.1