s4-repl: Allow dsdb_replicated_objects_commit() to use different schema while committ...
authorKamen Mazdrashki <kamenim@samba.org>
Fri, 10 Dec 2010 00:55:30 +0000 (02:55 +0200)
committerKamen Mazdrashki <kamenim@samba.org>
Tue, 14 Dec 2010 23:51:19 +0000 (00:51 +0100)
commitc94e5d44385d23172a8776e4c12d71e30c9c6616
treee1f390c5f3e67b240a15d67175f04296a04a31c8
parentafee8a28c408efd3323b9064929b00be6eb89815
s4-repl: Allow dsdb_replicated_objects_commit() to use different schema while committing objects

working_schema is to be used while committing a Schema replica.

When we replicate Schema, then we most probably won't be
able to convert all replicated objects using the current
Schema cache (as we don't know anything about those new objects).

Thus, during Schema replication, we make a temporary
working_schema that contains both our current Schema +
all objects we get on the wire.
When we commit those new objects, we should use our working_schema
(by setting it to the ldb), and after all changes are commited,
we can refresh the schema cache so we have a brand new,
full-featured Schema cache
source4/dsdb/repl/drepl_out_helpers.c
source4/dsdb/repl/replicated_objects.c
source4/libnet/libnet_vampire.c