activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r620490 - /activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h
Date Mon, 11 Feb 2008 14:28:10 GMT
Author: tabish
Date: Mon Feb 11 06:28:09 2008
New Revision: 620490

URL: http://svn.apache.org/viewvc?rev=620490&view=rev
Log:
http://issues.apache.org/activemq/browse/AMQCPP-166


Fix map copy on outbound send through async transport

Modified:
    activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h

Modified: activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h?rev=620490&r1=620489&r2=620490&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h
(original)
+++ activemq/activemq-cpp/trunk/src/main/activemq/connector/openwire/commands/ActiveMQMapMessage.h
Mon Feb 11 06:28:09 2008
@@ -37,7 +37,7 @@
 
     class ActiveMQMapMessage :
         public ActiveMQMessageBase<cms::MapMessage> {
-        	
+
     public:
 
         const static unsigned char ID_ACTIVEMQMAPMESSAGE = 25;
@@ -76,6 +76,13 @@
          */
         virtual void copyDataStructure( const DataStructure* src ) {
             ActiveMQMessageBase<cms::MapMessage>::copyDataStructure( src );
+
+            const ActiveMQMapMessage* srcMap =
+                dynamic_cast< const ActiveMQMapMessage* >( src );
+
+            if( srcMap != NULL && srcMap->map != NULL ) {
+                this->map = new util::PrimitiveMap( *srcMap->map );
+            }
         }
 
         /**



Mime
View raw message