From 9f95eb92201a1627bc7b90198089472a1056f795 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Fri, 23 Apr 2010 21:26:37 +0000 Subject: Fixed a logic error in the handling of QMFv2 get-by-class queries. When deleted objects were encountered, spurious updates were sent, appearing as duplicates. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@937526 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/management/ManagementAgent.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/management/ManagementAgent.cpp b/cpp/src/qpid/management/ManagementAgent.cpp index 58a5d9bdd0..223ed908da 100644 --- a/cpp/src/qpid/management/ManagementAgent.cpp +++ b/cpp/src/qpid/management/ManagementAgent.cpp @@ -1724,11 +1724,10 @@ void ManagementAgent::handleGetQueryLH(const string& body, const string& replyTo "_data", object->getMd5Sum()); list_.push_back(map_); + ListCodec::encode(list_, content); + sendBufferLH(content, cid, headers, "amqp/list", v2Direct, replyTo); + QPID_LOG(trace, "SENT QueryResponse (query by schema_id) to=" << replyTo); } - - ListCodec::encode(list_, content); - sendBufferLH(content, cid, headers, "amqp/list", v2Direct, replyTo); - QPID_LOG(trace, "SENT QueryResponse (query by schema_id) to=" << replyTo); } } } -- cgit v1.2.1