ldb_tdb: Implement read_lock and read_unlock module operations
authorAndrew Bartlett <abartlet@samba.org>
Thu, 11 May 2017 23:39:08 +0000 (01:39 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 2 Jul 2017 15:35:19 +0000 (17:35 +0200)
This allows Samba to provide a consistent view of the DB
despite the use of multiple databases via the partitions module
and over multiple callbacks via a module stack.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/ldb/ldb_tdb/ldb_tdb.c

index ad15a5e70a549807caabe2be466ed7827977e25b..2ac1967ee15bd45014786cc710acb93e1f3c5157 100644 (file)
@@ -1577,6 +1577,8 @@ static const struct ldb_module_ops ltdb_ops = {
        .end_transaction   = ltdb_end_trans,
        .prepare_commit    = ltdb_prepare_commit,
        .del_transaction   = ltdb_del_trans,
+       .read_lock         = ltdb_lock_read,
+       .read_unlock       = ltdb_unlock_read,
 };
 
 /*