New attempt at TDB transaction nesting allow/disallow.
commit0b43209493db4df6756c9a202f591847ad030e6c
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 25 May 2009 07:04:42 +0000 (25 17:04 +1000)
committerKarolin Seeger <kseeger@samba.org>
Mon, 21 Dec 2009 09:55:14 +0000 (21 10:55 +0100)
tree330fb51a01f244ff25964e09609157ba1df607bb
parent13ad49d14484de3fc9f5f458d3cd8723e41cb35a
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>
(cherry picked from commit 436b55db1ff238ec467b07a74b088f6fcfaf927c)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit e6669e7f563f7be27ecb9872ea3ef148236dea3c)
lib/tdb/common/transaction.c
lib/tdb/include/tdb.h