From: Andrew Bartlett Date: Sat, 10 Jun 2017 07:23:34 +0000 (+1200) Subject: dsdb: Add comment explaining requirements on DSDB_EXTENDED_SCHEMA_UPDATE_NOW_OID X-Git-Tag: tevent-0.9.32~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60cae0a7045a43f5da5c00e95308f2e1ec1b3161;p=thirdparty%2Fsamba.git dsdb: Add comment explaining requirements on DSDB_EXTENDED_SCHEMA_UPDATE_NOW_OID Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Fri Jun 16 23:43:46 CEST 2017 on sn-devel-144 --- diff --git a/source4/dsdb/samdb/ldb_modules/schema_load.c b/source4/dsdb/samdb/ldb_modules/schema_load.c index 6ffa4650dd9..a2f8e57b29c 100644 --- a/source4/dsdb/samdb/ldb_modules/schema_load.c +++ b/source4/dsdb/samdb/ldb_modules/schema_load.c @@ -512,12 +512,13 @@ static int schema_load_del_transaction(struct ldb_module *module) return ldb_next_del_trans(module); } +/* This is called in a transaction held by the callers */ static int schema_load_extended(struct ldb_module *module, struct ldb_request *req) { struct ldb_context *ldb = ldb_module_get_ctx(module); struct dsdb_schema *schema; int ret; - + if (strcmp(req->op.extended.oid, DSDB_EXTENDED_SCHEMA_UPDATE_NOW_OID) != 0) { return ldb_next_request(module, req); }