From 053d81b2dcac86893448de370fb0c4cc2e13c597 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@937526 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/management/ManagementAgent.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/management/ManagementAgent.cpp b/qpid/cpp/src/qpid/management/ManagementAgent.cpp index 58a5d9bdd0..223ed908da 100644 --- a/qpid/cpp/src/qpid/management/ManagementAgent.cpp +++ b/qpid/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