dsdb: Load schema during the read_lock() hook, not the search
authorAndrew Bartlett <abartlet@samba.org>
Tue, 10 Apr 2018 23:58:22 +0000 (11:58 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Apr 2018 03:15:17 +0000 (05:15 +0200)
commit6c9e658ec1bb959e20aaab6244daf27dd6232fe2
treee92bba1a5652072ec2e27a87a5eea163769506eb
parent6baf7608dfc3517cb3798fc53db849f49c6d157a
dsdb: Load schema during the read_lock() hook, not the search

This should trigger slightly less often and is the more correct place, as
we only load it during the first lock when not in a transaction.

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