]> git.ozlabs.org Git - ccan/commit
tdb2: allow transaction to nest.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Apr 2011 01:29:45 +0000 (10:59 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Apr 2011 01:29:45 +0000 (10:59 +0930)
commit72e974b25a04a72a1123501aafbb3b5d39019d42
tree5d6de6d80d24b84f400596806c4f9b43d873c359
parentdc9da1e34fe6a9d113fd57e116ebbc6d5bd54819
tdb2: allow transaction to nest.

This is definitely a bad idea in general, but SAMBA uses nested transactions
in many and varied ways (some of them probably reflect real bugs) and it's
far easier to support them inside tdb2 with a flag.

We already have part of the TDB1 infrastructure in place, so this patch
just completes it and fixes one place where I'd messed it up.
ccan/tdb2/open.c
ccan/tdb2/tdb.c
ccan/tdb2/tdb2.h
ccan/tdb2/transaction.c