schema: Do not read different schema sequence values during a read transaction
authorGarming Sam <garming@catalyst.net.nz>
Thu, 1 Feb 2018 23:05:27 +0000 (12:05 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 5 Mar 2018 19:50:14 +0000 (20:50 +0100)
commit8caf84a8d4c4454941c163b7ecd9a2e65060526c
tree1df09e084797baa410260c2db0eb42792b4e2bcf
parent1265346f6c8ada27f2f0cf29a4f21a457fb6af00
schema: Do not read different schema sequence values during a read transaction

During a read lock, we find ourselves seeing an unchanged schema, but
reading any updates to the metadata.tdb (in the case of lmdb, where
reads do not block writes).

The alternative is to read-lock the entire metadata.tdb, however, this
allows more concurrency by allowing reads not to block writes.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/schema_load.c