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)
committerStefan Metzmacher <metze@samba.org>
Thu, 12 Apr 2018 13:05:46 +0000 (15:05 +0200)
commitdbd0be855a1a8fc29e4700fa8bdc7df232035790
treeb98e6be79cf1d01ff63f703c8b8b3dd3e83c6031
parent66282786ebfa5cb45f14f374c95a2fd697df4b44
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