summaryrefslogtreecommitdiff
path: root/TAO/tao/Asynch_Reply_Dispatcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Asynch_Reply_Dispatcher.cpp')
-rw-r--r--TAO/tao/Asynch_Reply_Dispatcher.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/TAO/tao/Asynch_Reply_Dispatcher.cpp b/TAO/tao/Asynch_Reply_Dispatcher.cpp
index b4a20a82253..5e7b2adb3aa 100644
--- a/TAO/tao/Asynch_Reply_Dispatcher.cpp
+++ b/TAO/tao/Asynch_Reply_Dispatcher.cpp
@@ -1,6 +1,5 @@
// $Id$
-
#include "tao/Asynch_Reply_Dispatcher.h"
#include "tao/Pluggable_Messaging_Utils.h"
@@ -48,11 +47,6 @@ TAO_Asynch_Reply_Dispatcher_Base::dispatch_reply (
return 0;
}
-/*TAO_GIOP_Message_State *
-TAO_Asynch_Reply_Dispatcher_Base::message_state (void)
-{
- return this->message_state_;
-} */
void
TAO_Asynch_Reply_Dispatcher_Base::dispatcher_bound (TAO_Transport *)
@@ -113,11 +107,11 @@ TAO_Asynch_Reply_Dispatcher::dispatch_reply (
this->reply_status_ = params.reply_status_;
- // this->message_state_ = message_state;
-
- // Steal the buffer so that no copying is done.
- this->reply_cdr_.exchange_data_blocks (params.input_cdr_);
+ // Transfer the <params.input_cdr_>'s content to this->reply_cdr_
+ ACE_Data_Block *db =
+ this->reply_cdr_.clone_from (params.input_cdr_);
+ ACE_UNUSED_ARG (db);
// Steal the buffer, that way we don't do any unnecesary copies of
// this data.
CORBA::ULong max = params.svc_ctx_.maximum ();