dsdb: Rework schema reload during the read lock
authorAndrew Bartlett <abartlet@samba.org>
Wed, 11 Apr 2018 00:29:18 +0000 (12:29 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Apr 2018 03:15:17 +0000 (05:15 +0200)
commite9483c269a9ef9e585030ec5f0337f88e73d0863
tree46a4e67287a1db4dc799168c47d3cc43e8f36162
parent6c9e658ec1bb959e20aaab6244daf27dd6232fe2
dsdb: Rework schema reload during the read lock

Rather than refusing the reload based on making cached sequence numbers match
just load it once at the time the DB is globally locked, if required.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13379

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/schema_load.c