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 | 97121a285ae6293057b7a8ebcb2c72e0b4721555 (patch) | |
| tree | d2dd830f5a6b832e512a2435895bb15ef93e61ff /qpid/cpp/src | |
| parent | a60eed875069b973d8ba2592dbd079ed39757777 (diff) | |
| download | qpid-python-97121a285ae6293057b7a8ebcb2c72e0b4721555.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@725456 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/Broker.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/broker/Broker.cpp b/qpid/cpp/src/qpid/broker/Broker.cpp index 0ae6106f57..f7fe05e860 100644 --- a/qpid/cpp/src/qpid/broker/Broker.cpp +++ b/qpid/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); |
