From 6416726d452570462d559632f6d25161c7da31fe Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Thu, 15 Oct 2009 21:38:07 +0000 Subject: Bug fix: Console sent get-requests (by objectId) to all agents, not just the agent identified in the objectId. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@825672 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qmf/engine/QueryImpl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpp/src/qmf/engine/QueryImpl.h') diff --git a/cpp/src/qmf/engine/QueryImpl.h b/cpp/src/qmf/engine/QueryImpl.h index 2c64c6739c..8ebe0d932f 100644 --- a/cpp/src/qmf/engine/QueryImpl.h +++ b/cpp/src/qmf/engine/QueryImpl.h @@ -85,6 +85,8 @@ namespace engine { bool getDecreasing() const { return orderDecreasing; } void encode(qpid::framing::Buffer& buffer) const; + bool singleAgent() const { return oid.get() != 0; } + uint32_t agentBank() const { return singleAgent() ? oid->getAgentBank() : 0; } std::string packageName; std::string className; -- cgit v1.2.1