From 657e31450c704b4d62423d9386372fc3bb248669 Mon Sep 17 00:00:00 2001 From: Garming Sam Date: Wed, 6 Jul 2016 16:57:26 +1200 Subject: schema: Remove unnecessary schema reload code Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett --- source4/dsdb/samdb/ldb_modules/schema_load.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'source4/dsdb/samdb/ldb_modules/schema_load.c') diff --git a/source4/dsdb/samdb/ldb_modules/schema_load.c b/source4/dsdb/samdb/ldb_modules/schema_load.c index 3f5cd2c62c2..34700672a39 100644 --- a/source4/dsdb/samdb/ldb_modules/schema_load.c +++ b/source4/dsdb/samdb/ldb_modules/schema_load.c @@ -496,20 +496,13 @@ static int schema_load_del_transaction(struct ldb_module *module) static int schema_load_extended(struct ldb_module *module, struct ldb_request *req) { - time_t *lastts; struct ldb_context *ldb = ldb_module_get_ctx(module); if (strcmp(req->op.extended.oid, DSDB_EXTENDED_SCHEMA_UPDATE_NOW_OID) != 0) { return ldb_next_request(module, req); } - lastts = (time_t *)ldb_get_opaque(ldb, DSDB_OPAQUE_LAST_SCHEMA_UPDATE_MSG_OPAQUE_NAME); - if (!lastts) { - lastts = talloc(ldb, time_t); - } /* Force a refresh */ dsdb_get_schema(ldb, NULL); - *lastts = 0; - ldb_set_opaque(ldb, DSDB_OPAQUE_LAST_SCHEMA_UPDATE_MSG_OPAQUE_NAME, lastts); /* Pass to next module, the partition one should finish the chain */ return ldb_next_request(module, req); -- cgit v1.2.1