s4-drepl: Make refreshed schema a global one
authorKamen Mazdrashki <kamenim@samba.org>
Thu, 16 Dec 2010 20:31:28 +0000 (22:31 +0200)
committerKamen Mazdrashki <kamenim@samba.org>
Sat, 18 Dec 2010 03:32:14 +0000 (05:32 +0200)
commitbd6f9efc1e993d41d14da3ac56307ed424745153
treea82131fca4c4ca6421b92e5883496e38c66f684f
parent09a2f14c84de1da658009c62572c7cbffb07febc
s4-drepl: Make refreshed schema a global one

We need to do this as dsdb_reference_schema() function
clears "use_global_schema" ldb flag.

Basically what is going to happen is that after dsdb_reference_schema()
global_schema pointer will continue to point at old schema cache,
while "dsdb_schema" for LDB will point at the working_schema.

After replication is done, we reset "dsdb_schema" for the ldb
with an updated Schema cache, but this leaves global_schema pointer
with its old value, which is not up to date.
So we need to call dsdb_make_schema_global() again so that global_schema
points to a valid Schema cache.
source4/dsdb/repl/replicated_objects.c