schema: Rework dsdb_schema_set_indices_and_attributes() db operations
commit5c36e9ae5b74b28396d1acc5103e53aea6f5fc8f
authorAndrew Bartlett <abartlet@samba.org>
Mon, 11 Sep 2017 03:22:23 +0000 (11 15:22 +1200)
committerStefan Metzmacher <metze@samba.org>
Sat, 16 Sep 2017 07:24:12 +0000 (16 09:24 +0200)
tree46ca4fede0f3b4bc0ecdd040f2e878e55b445012
parentdb16b55c2a0efffd6d40d6f91c6e8a4499f53e33
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>
(cherry picked from commit 5d9bb80a027ba2b03c97d80c10173f946c758f69)
source4/dsdb/schema/schema_set.c