schema: Rework dsdb_schema_set_indices_and_attributes() db operations
authorAndrew Bartlett <abartlet@samba.org>
Mon, 11 Sep 2017 03:22:23 +0000 (15:22 +1200)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Sep 2017 16:43:16 +0000 (18:43 +0200)
commit5d9bb80a027ba2b03c97d80c10173f946c758f69
tree3c00e74db5ee8a9d891bca5c2af7138945ef8ff6
parent51be27522caffde8a3806f8c0c877a0f85eaf398
schema: Rework dsdb_schema_set_indices_and_attributes() db operations

Commit ec9b1e881c3eef503d6b4b311594113acf7d47d8 did not fully fix this.

There is no value in using dsdb_replace(), we are under the read lock
and replace just confuses things further.

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

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
selftest/knownfail.d/dsdb_schema_attributes [deleted file]
source4/dsdb/schema/schema_set.c