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)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 3 May 2018 06:17:44 +0000 (08:17 +0200)
commit25e1cfad3afd936227d8240666c61b2b339a74ba
treeb96315a548750d71ab20bd4bf822e245c4bf318b
parentf04bbd3ec39b9d08df7b6b6596823461aa37fedf
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>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/ldb/ldb_tdb/ldb_tdb.c