qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgiu...@apache.org
Subject svn commit: r1041582 - /qpid/trunk/qpid/cpp/src/qpid/management/ManagementAgent.cpp
Date Thu, 02 Dec 2010 21:03:42 GMT
Author: kgiusti
Date: Thu Dec  2 21:03:42 2010
New Revision: 1041582

URL: http://svn.apache.org/viewvc?rev=1041582&view=rev
Log:
bugfix in deleted obj import/export api

Modified:
    qpid/trunk/qpid/cpp/src/qpid/management/ManagementAgent.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/management/ManagementAgent.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/management/ManagementAgent.cpp?rev=1041582&r1=1041581&r2=1041582&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/management/ManagementAgent.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/management/ManagementAgent.cpp Thu Dec  2 21:03:42 2010
@@ -681,7 +681,9 @@ void ManagementAgent::periodicProcessing
 
         dptr->packageName = delObj->getPackageName();
         dptr->className = delObj->getClassName();
-        delObj->getObjectId().encode(dptr->objectId);
+        stringstream oid;
+        oid << delObj->getObjectId();
+        dptr->objectId = oid.str();
 
         if (qmf1Support) {
             delObj->writeProperties(dptr->encodedV1Config);
@@ -2862,6 +2864,8 @@ Variant ManagementAgent::toVariant(const
 // next (last) publish-ment.
 void ManagementAgent::exportDeletedObjects(DeletedObjectList& outList)
 {
+    outList.clear();
+
     sys::Mutex::ScopedLock lock (userLock);
     list<pair<ObjectId, ManagementObject*> > deleteList;
 
@@ -2890,7 +2894,9 @@ void ManagementAgent::exportDeletedObjec
 
         dptr->packageName = delObj->getPackageName();
         dptr->className = delObj->getClassName();
-        delObj->getObjectId().encode(dptr->objectId);
+        stringstream oid;
+        oid << delObj->getObjectId();
+        dptr->objectId = oid.str();
 
         if (qmf1Support) {
             delObj->writeProperties(dptr->encodedV1Config);



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message