From 4ea11e4c5be72227014df0ccbaae2097de96be8b Mon Sep 17 00:00:00 2001 From: Kenneth Anthony Giusti Date: Mon, 6 Jun 2011 14:45:10 +0000 Subject: checkpoint: fix setup of command callback git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-3079@1132661 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/SessionState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qpid/cpp/src/qpid/broker/SessionState.cpp b/qpid/cpp/src/qpid/broker/SessionState.cpp index 4f6e7ff075..a3197ead09 100644 --- a/qpid/cpp/src/qpid/broker/SessionState.cpp +++ b/qpid/cpp/src/qpid/broker/SessionState.cpp @@ -465,8 +465,8 @@ SessionState::IncompleteIngressMsgXfer::clone() // this routine is *only* invoked when the message needs to be asynchronously completed. Otherwise, ::completed() // will be invoked directly. Thus, let the SessionState know this command is not going to complete immediately: - pendingCmdCtxt = boost::intrusive_ptr(new CommandContext(msg)); - boost::intrusive_ptr ctxt(pendingCmdCtxt); + cb->pendingCmdCtxt = boost::intrusive_ptr(new CommandContext(msg)); + boost::intrusive_ptr ctxt(cb->pendingCmdCtxt); session->registerAsyncCommand(ctxt); return cb; } -- cgit v1.2.1