dsdb: The schema should be reloaded during the transaction
authorGarming Sam <garming@catalyst.net.nz>
Mon, 20 Nov 2017 22:31:10 +0000 (11:31 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 5 Mar 2018 19:50:15 +0000 (20:50 +0100)
commit2a0e0227383612c5c13c1b6e67afff274ffd4571
tree464c88e1793e382ba7bbfd64d8e12fcec988d6b2
parent8ac1646e92d707705c94bc286c17f1cd0d5505fb
dsdb: The schema should be reloaded during the transaction

Reload the schema just after getting the tranaction lock
but before the transaction counter is bumped.

This ensures we reload the schema exactly once but with
the DB locked.

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