ldb_tdb: Disallow TDB nested transactions and use tdb_transaction_active()
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 22 Mar 2018 22:28:18 +0000 (11:28 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 3 May 2018 06:17:44 +0000 (08:17 +0200)
commitf04bbd3ec39b9d08df7b6b6596823461aa37fedf
tree40d1ec60e4f15b7aa9aaf2cb55c2383e02f8cc51
parent501b35f86199216c78e38b4e0bc8e985e417f95d
ldb_tdb: Disallow TDB nested transactions and use tdb_transaction_active()

This avoids keeping a counter, which can be error-prone.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
lib/ldb/ldb_tdb/ldb_tdb.c
lib/ldb/ldb_tdb/ldb_tdb.h