diff options
| author | Pavel Moravec <pmoravec@apache.org> | 2013-09-05 07:29:36 +0000 |
|---|---|---|
| committer | Pavel Moravec <pmoravec@apache.org> | 2013-09-05 07:29:36 +0000 |
| commit | 2956e57b97b1f09155ea3dffd9aacfbedbf38d29 (patch) | |
| tree | fd859d72db642cf97f4dc6ee33f428216566531d /cpp/src/qpid/broker/SemanticState.cpp | |
| parent | f596115bfed5d42f31a6f47720be1be61de257cd (diff) | |
| download | qpid-python-2956e57b97b1f09155ea3dffd9aacfbedbf38d29.tar.gz | |
fixing QPID-5108
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1520245 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SemanticState.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/SemanticState.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/SemanticState.cpp b/cpp/src/qpid/broker/SemanticState.cpp index c1a68923d7..0b4d9f0032 100644 --- a/cpp/src/qpid/broker/SemanticState.cpp +++ b/cpp/src/qpid/broker/SemanticState.cpp @@ -168,12 +168,14 @@ void SemanticState::startTx() { txBuffer = TxBuffer::shared_ptr(new TxBuffer()); session.getBroker().getBrokerObservers().startTx(txBuffer); + session.startTx(); //just to update statistics } void SemanticState::commit(MessageStore* const store) { if (!txBuffer) throw CommandInvalidException(QPID_MSG("Session has not been selected for use with transactions")); + session.commitTx(); //just to update statistics TxOp::shared_ptr txAck(static_cast<TxOp*>(new TxAccept(accumulatedAck, unacked))); txBuffer->enlist(txAck); if (txBuffer->commitLocal(store)) { @@ -187,6 +189,7 @@ void SemanticState::rollback() { if (!txBuffer) throw CommandInvalidException(QPID_MSG("Session has not been selected for use with transactions")); + session.rollbackTx(); //just to update statistics txBuffer->rollback(); accumulatedAck.clear(); } |
