summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorTed Ross <tross@apache.org>2010-03-26 18:00:43 +0000
committerTed Ross <tross@apache.org>2010-03-26 18:00:43 +0000
commitb58c5c0d249f627dbf3eecc542b8cad4a489d7fa (patch)
tree312a334da73e563b4f49c2e0775219dc8944e5e4 /qpid/cpp
parent0c72a9c689407001ab0ccab00d091166b93ed9ec (diff)
downloadqpid-python-b58c5c0d249f627dbf3eecc542b8cad4a489d7fa.tar.gz
Fixed bugs related to query-by-objectId
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qmf-devel0.7a@927994 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp2
-rw-r--r--qpid/cpp/src/qpid/management/ManagementObject.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp b/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp
index 5966b0766c..5513379643 100644
--- a/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp
+++ b/qpid/cpp/src/qpid/agent/ManagementAgentImpl.cpp
@@ -576,7 +576,7 @@ void ManagementAgentImpl::handleGetQuery(const string& body, const string& cid,
*/
i = inMap.find("_object_id");
if (i != inMap.end() && i->second.getType() == qpid::messaging::VAR_MAP) {
- ObjectId objId(i->second);
+ ObjectId objId(i->second.asMap());
ManagementObjectMap::iterator iter = managementObjects.find(objId);
if (iter != managementObjects.end()) {
diff --git a/qpid/cpp/src/qpid/management/ManagementObject.cpp b/qpid/cpp/src/qpid/management/ManagementObject.cpp
index 68fcdaca71..6184ed0697 100644
--- a/qpid/cpp/src/qpid/management/ManagementObject.cpp
+++ b/qpid/cpp/src/qpid/management/ManagementObject.cpp
@@ -188,7 +188,7 @@ void ObjectId::mapDecode(const messaging::VariantMap& map)
agentName = i->second.asString();
if ((i = map.find("_agent_epoch")) != map.end())
- agentEpoch = i->second.asUint64();
+ agentEpoch = i->second.asInt64();
}