ldb_tdb: Disallow reads without a transaction or read lock
authorAndrew Bartlett <abartlet@samba.org>
Wed, 4 Apr 2018 05:21:30 +0000 (17:21 +1200)
committerStefan Metzmacher <metze@samba.org>
Thu, 12 Apr 2018 13:05:52 +0000 (15:05 +0200)
commitcf12344e7022a792f1679563754946a59612c6c5
tree703bf66b5f980c6a2dc2582b4216f158a7bcf21e
parentdbd0be855a1a8fc29e4700fa8bdc7df232035790
ldb_tdb: Disallow reads without a transaction or read lock

This will ensure we match LMDB behaviour and avoid a repeat of the per-record locking
issues (compared with full DB locking) we had before Samba 4.7.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb/ldb_tdb/ldb_tdb.c