From bce7f97cf5d60cf37ab623760eaa44572e214f69 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 18 Jan 2013 10:23:39 +0200 Subject: Add support for post-commit/rollback callbacks New test: common/transaction/callback. --- odb/transaction.ixx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'odb/transaction.ixx') diff --git a/odb/transaction.ixx b/odb/transaction.ixx index 6c6c3c1..6d5553d 100644 --- a/odb/transaction.ixx +++ b/odb/transaction.ixx @@ -8,7 +8,10 @@ namespace odb { inline transaction:: transaction (transaction_impl* impl, bool make_current) - : finalized_ (true), impl_ (0) + : finalized_ (true), + impl_ (0), + free_callback_ (max_callback_count), + callback_count_ (0) { reset (impl, make_current); } -- cgit v1.1