From 6400b736456af65176c9c1959022f1eb49fcde32 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 20 Jul 2010 11:02:07 +0200 Subject: Get rid of the session mechanism for now Add low-level API instead. --- odb/transaction.cxx | 7 ------- 1 file changed, 7 deletions(-) (limited to 'odb/transaction.cxx') diff --git a/odb/transaction.cxx b/odb/transaction.cxx index 7b28ea2..de5d1f6 100644 --- a/odb/transaction.cxx +++ b/odb/transaction.cxx @@ -61,11 +61,6 @@ namespace odb if (finilized_) throw transaction_already_finilized (); - // Flush the session if we are in the session-per-transaction mode. - // - if (impl_->own_session ()) - session ().flush (); - impl_->commit (); finilized_ = true; } @@ -87,7 +82,5 @@ namespace odb transaction_impl:: ~transaction_impl () { - if (own_session ()) - reinterpret_cast (&session_mem_)->~session (); } } -- cgit v1.1