diff options
author | Ted Ross <tross@apache.org> | 2010-07-22 21:57:37 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2010-07-22 21:57:37 +0000 |
commit | d06a4f9aa864b15d63ee967c5337699dc76a4157 (patch) | |
tree | 8972c7487e61979e9484132da56c19e08993b924 /qpid/cpp/src/qmf/engine/Agent.cpp | |
parent | 786813d0fad8f8a72a882ca28385850351bb2843 (diff) | |
download | qpid-python-d06a4f9aa864b15d63ee967c5337699dc76a4157.tar.gz |
Bugfix: agent label in wrapped (python, ruby) qmf agent was not transmitted to the
consoles.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@966871 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qmf/engine/Agent.cpp')
-rw-r--r-- | qpid/cpp/src/qmf/engine/Agent.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/qmf/engine/Agent.cpp b/qpid/cpp/src/qmf/engine/Agent.cpp index 64c5961385..067f53471f 100644 --- a/qpid/cpp/src/qmf/engine/Agent.cpp +++ b/qpid/cpp/src/qmf/engine/Agent.cpp @@ -238,7 +238,7 @@ AgentImpl::AgentImpl(char* _label, bool i) : assignedBrokerBank(0), assignedAgentBank(0), bootSequence(1), nextObjectId(1), nextContextNum(1), attachComplete(false) { - queueName += label; + queueName += Uuid(true).str(); } AgentImpl::~AgentImpl() @@ -334,7 +334,7 @@ void AgentImpl::startProtocol() Buffer buffer(rawbuffer, 512); Protocol::encodeHeader(buffer, Protocol::OP_ATTACH_REQUEST); - buffer.putShortString("qmfa"); + buffer.putShortString(label); systemId.encode(buffer); buffer.putLong(requestedBrokerBank); buffer.putLong(requestedAgentBank); |