diff options
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; } |