New attempt at TDB transaction nesting allow/disallow.
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 25 May 2009 07:04:42 +0000 (17:04 +1000)
committerStefan Metzmacher <metze@samba.org>
Fri, 20 Nov 2009 08:45:34 +0000 (09:45 +0100)
commit436b55db1ff238ec467b07a74b088f6fcfaf927c
tree1689f28b11031276ec4b9ce95509e5a780de4c9a
parent85449b7bcc4bd7948bea38b5514a02357950a002
New attempt at TDB transaction nesting allow/disallow.

Make the default be that transaction is not allowed and any attempt to create a nested transaction will fail with TDB_ERR_NESTING.

If an application can cope with transaction nesting and the implicit
semantics of tdb_transaction_commit(), it can enable transaction nesting
by using the TDB_ALLOW_NESTING flag.
(cherry picked from ctdb commit 3e49e41c21eb8c53084aa8cc7fd3557bdd8eb7b6)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/common/transaction.c
lib/tdb/include/tdb.h