Make all transactions nested in ldb. The current samba4 code expects this
authorSimo Sorce <idra@samba.org>
Sun, 22 Feb 2009 06:50:49 +0000 (01:50 -0500)
committerSimo Sorce <idra@samba.org>
Mon, 23 Feb 2009 18:33:19 +0000 (13:33 -0500)
commit689b8f5bb36a003756ee41787487237eef48cfab
tree0c14c96db6bf2807ddea01c7ba325a0797e83fdf
parentfda0158c14b97a54a911bb87ffc0ebb7c5729138
Make all transactions nested in ldb. The current samba4 code expects this
behavior anyway, and given we can only have one transaction active per
ldb context this is the only sane model we can support.

Fix ldb_tdb transactions, we could return back with an error with neither
committing nor canceling the actual tdb transaction in some error paths
within the ltdb commit and cancel transaction paths.

Added also some debugging to trace what was going on.
source4/lib/ldb/common/ldb.c
source4/lib/ldb/ldb_tdb/ldb_tdb.c