dsdb: Wait until a transaction starts to call dsdb_schema_set_indices_and_attributes()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 9 Apr 2018 09:59:01 +0000 (21:59 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Apr 2018 03:15:16 +0000 (05:15 +0200)
commita4778ad48e985931912f3fd2a7e27270ab4df8ce
treeb8cbd936b3652a90aa481f28f1ef5b467d25473b
parenta755c413c87155b8dd94d6938ae2ddbd1e328403
dsdb: Wait until a transaction starts to call dsdb_schema_set_indices_and_attributes()

This avoids starting a transaction in schema_load_init() and allows it
to operate with a read lock held, which will avoid locking issues
(deadlock detected due to lock odering if we do not have a global
read lock).

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>
selftest/knownfail.d/dsdb_schema_attributes [new file with mode: 0644]
source4/dsdb/samdb/ldb_modules/schema_load.c