s4-dsdb: Take more care in handling of global schema memory
authorAndrew Bartlett <abartlet@samba.org>
Sat, 11 Aug 2012 02:29:06 +0000 (12:29 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 11 Aug 2012 08:31:57 +0000 (10:31 +0200)
commit4631723c988b46be8af4e67f5aea9187b08b9187
tree0642d2b7d2c4ffd85d0a6a218b2c929f59b9e086
parent329e3749381fee4182fdbf6015a42e4bdca07168
s4-dsdb: Take more care in handling of global schema memory

This reworks dsdb_replicated_objects_commit() to have a proper local tmp_ctx and
to be more careful about what schema is set (only setting a global schema if
the original schema was global).

In particular, the new working_schema is not given a talloc reference
to the old schema.  This ensures that the old schema can go away when
no longer used.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Aug 11 10:31:57 CEST 2012 on sn-devel-104
source4/dsdb/repl/replicated_objects.c
source4/dsdb/samdb/ldb_modules/schema_load.c