diff options
| author | Gordon Sim <gsim@apache.org> | 2008-03-26 18:38:35 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-03-26 18:38:35 +0000 |
| commit | 719c2529a14527c236e871603136ccbe44f632d3 (patch) | |
| tree | 499f5c7b1d2348e46e34cb12d9c9dd5169901022 /cpp/src/qpid/broker/DtxManager.cpp | |
| parent | 5c8e2d27f805eff9f6a457d895fa38dc495301fd (diff) | |
| download | qpid-python-719c2529a14527c236e871603136ccbe44f632d3.tar.gz | |
Update to dtx inline with latest spec:
* Updated dtx handling in c++ broker to take account of separation of completion and acceptance.
* Added final dtx method defs to extra xml fragment and implemented appropriate handlers in c++ broker.
* Converted dtx python tests (recover test still requires some work on decoding arrays).
* Allow creation of structs without type codes through a python session method.
* Fixed exception handling in python client for commands with results.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@641464 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/DtxManager.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/DtxManager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/DtxManager.cpp b/cpp/src/qpid/broker/DtxManager.cpp index cef3a4b02b..fb6b3f019e 100644 --- a/cpp/src/qpid/broker/DtxManager.cpp +++ b/cpp/src/qpid/broker/DtxManager.cpp @@ -54,6 +54,7 @@ void DtxManager::recover(const std::string& xid, std::auto_ptr<TPCTransactionCon bool DtxManager::prepare(const std::string& xid) { + QPID_LOG(debug, "preparing: " << xid); try { return getWork(xid)->prepare(); } catch (DtxTimeoutException& e) { @@ -64,6 +65,7 @@ bool DtxManager::prepare(const std::string& xid) bool DtxManager::commit(const std::string& xid, bool onePhase) { + QPID_LOG(debug, "committing: " << xid); try { bool result = getWork(xid)->commit(onePhase); remove(xid); @@ -76,6 +78,7 @@ bool DtxManager::commit(const std::string& xid, bool onePhase) void DtxManager::rollback(const std::string& xid) { + QPID_LOG(debug, "rolling back: " << xid); try { getWork(xid)->rollback(); remove(xid); |
