diff options
author | Garming Sam <garming@catalyst.net.nz> | 2016-07-06 16:57:26 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2016-07-08 10:01:20 +0200 |
commit | 657e31450c704b4d62423d9386372fc3bb248669 (patch) | |
tree | 9ac2b739aff275c596916e6cc66c950f7457cf49 /source4/dsdb/samdb/ldb_modules/schema_load.c | |
parent | 769230a49aeb504adc9f5ead36acaa12e3418198 (diff) | |
download | samba-657e31450c704b4d62423d9386372fc3bb248669.tar.gz |
schema: Remove unnecessary schema reload code
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/schema_load.c')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/schema_load.c | 7 |
1 files changed, 0 insertions, 7 deletions
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); |