drepl: schema repl race condition fix
authorAaron Haslett <aaronhaslett@catalyst.net.nz>
Wed, 21 Nov 2018 00:55:53 +0000 (13:55 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 17 Dec 2018 00:24:15 +0000 (01:24 +0100)
commit1fd4cdfafaa6a41c824d1b3d76635bf3e446de0f
treeebe99492e3d667c469d0bd919b68c08d63248c25
parentf460bb52ed4393722d58f9e6d30bd0c7e6a51f1d
drepl: schema repl race condition fix

Adds final schema consistency check before committing changes.
Aborts if corruption found.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12889
Signed-off-by: Aaron Haslett <aaronhaslett@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/repl/replicated_objects.c
source4/dsdb/samdb/ldb_modules/schema_load.c
source4/dsdb/samdb/samdb.h