s4/schema: remove unnecessary deletion of dsdb_schema cached pointer
authorAnatoliy Atanasov <anatoliy.atanasov@postpath.com>
Fri, 2 Jul 2010 08:39:39 +0000 (11:39 +0300)
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>
Fri, 2 Jul 2010 08:55:33 +0000 (11:55 +0300)
This is needed so we can find and free old schemas based using
the cached pointer

source4/dsdb/schema/schema_set.c

index da5ad3ce9248e50737835dc8afbee922bc73ae2b..e09d2073bb8bbd988e8d26a920f798c71da658fe 100644 (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;