1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

s4/schema: remove unnecessary deletion of dsdb_schema cached pointer

This is needed so we can find and free old schemas based using
the cached pointer
This commit is contained in:
Anatoliy Atanasov 2010-07-02 11:39:39 +03:00
parent d9429a874c
commit 62341537d7

View File

@ -536,9 +536,6 @@ void dsdb_make_schema_global(struct ldb_context *ldb, struct dsdb_schema *schema
talloc_unlink(talloc_autofree_context(), global_schema);
}
/* Wipe any reference to the exact schema - we will set 'use the global schema' below */
ldb_set_opaque(ldb, "dsdb_schema", NULL);
/* we want the schema to be around permanently */
talloc_reparent(ldb, talloc_autofree_context(), schema);
global_schema = schema;