diff options
| author | Gordon Sim <gsim@apache.org> | 2007-05-31 16:31:20 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2007-05-31 16:31:20 +0000 |
| commit | abf98a7ed4bd2d08d88b7f4f5d753b2e6d6dceb2 (patch) | |
| tree | 98a79740be2eac25dd86ce80b7cd62472881f53f /cpp/src/qpid/broker/BrokerChannel.cpp | |
| parent | 349c01eba782a91b19edd373f058f60a6ff529fa (diff) | |
| download | qpid-python-abf98a7ed4bd2d08d88b7f4f5d753b2e6d6dceb2.tar.gz | |
Updates to dtx support.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@543182 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/BrokerChannel.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/BrokerChannel.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/cpp/src/qpid/broker/BrokerChannel.cpp b/cpp/src/qpid/broker/BrokerChannel.cpp index 235f320cb7..096478faad 100644 --- a/cpp/src/qpid/broker/BrokerChannel.cpp +++ b/cpp/src/qpid/broker/BrokerChannel.cpp @@ -28,17 +28,19 @@ #include <boost/bind.hpp> #include <boost/format.hpp> -#include "BrokerChannel.h" #include "qpid/framing/ChannelAdapter.h" #include "qpid/QpidError.h" -#include "DeliverableMessage.h" -#include "BrokerQueue.h" + +#include "BrokerAdapter.h" +#include "BrokerChannel.h" #include "BrokerMessage.h" +#include "BrokerQueue.h" +#include "Connection.h" +#include "DeliverableMessage.h" +#include "DtxAck.h" #include "MessageStore.h" #include "TxAck.h" #include "TxPublish.h" -#include "BrokerAdapter.h" -#include "Connection.h" using std::mem_fun_ref; using std::bind2nd; @@ -133,7 +135,8 @@ void Channel::endDtx(const std::string& xid){ % dtxBuffer->getXid() % xid); } - TxOp::shared_ptr txAck(new TxAck(accumulatedAck, unacked)); + TxOp::shared_ptr txAck(new DtxAck(accumulatedAck, unacked)); + accumulatedAck.clear(); dtxBuffer->enlist(txAck); dtxBuffer->markEnded(); |
