From 33d8343d134a391fa7d0a338fafad1a22ff58dc3 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 30 Mar 2007 15:50:07 +0000 Subject: 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 --- cpp/lib/broker/TxBuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/lib/broker/TxBuffer.cpp') 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; } -- cgit v1.2.1