diff options
author | Gordon Sim <gsim@apache.org> | 2007-03-30 15:50:07 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-03-30 15:50:07 +0000 |
commit | 33d8343d134a391fa7d0a338fafad1a22ff58dc3 (patch) | |
tree | 7c8b9ef3ea62852eb38548be87f908b2892e12a2 /cpp/lib/broker/TxBuffer.cpp | |
parent | 8fc571ee337add8f2c4ab1f1ebc0c4784c58e2bf (diff) | |
download | qpid-python-33d8343d134a391fa7d0a338fafad1a22ff58dc3.tar.gz |
Refactored the MessageStore interface to restrict visibility of broker core from store implementations.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@524139 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/TxBuffer.cpp')
-rw-r--r-- | cpp/lib/broker/TxBuffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/lib/broker/TxBuffer.cpp b/cpp/lib/broker/TxBuffer.cpp index acd3283bb7..e5701c3d46 100644 --- a/cpp/lib/broker/TxBuffer.cpp +++ b/cpp/lib/broker/TxBuffer.cpp @@ -29,11 +29,11 @@ bool TxBuffer::prepare(TransactionalStore* const store) if(store) ctxt = store->begin(); for(op_iterator i = ops.begin(); i < ops.end(); i++){ if(!(*i)->prepare(ctxt.get())){ - if(store) store->abort(ctxt.get()); + if(store) store->abort(*ctxt); return false; } } - if(store) store->commit(ctxt.get()); + if(store) store->commit(*ctxt); return true; } |