]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
replmd: Remove data field on DSDB_CONTROL_REPLICATED_UPDATE_OID
authorGarming Sam <garming@catalyst.net.nz>
Wed, 27 Jul 2016 04:09:22 +0000 (16:09 +1200)
committerStefan Metzmacher <metze@samba.org>
Thu, 28 Jul 2016 08:06:09 +0000 (10:06 +0200)
There were no users of the data, and it added additional complexity

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c
source4/dsdb/samdb/samdb.h

index 7d098355cffe978012c5f63bfe9a6c51ecfa934f..fc62c442dc78892d8cf85ab398b8c93f6924b3c0 100644 (file)
@@ -5886,7 +5886,6 @@ static int replmd_extended_replicated_objects(struct ldb_module *module, struct
        uint32_t i;
        struct replmd_private *replmd_private =
                talloc_get_type(ldb_module_get_private(module), struct replmd_private);
-       struct dsdb_control_replicated_update *rep_update;
 
        ldb = ldb_module_get_ctx(module);
 
@@ -5927,15 +5926,7 @@ static int replmd_extended_replicated_objects(struct ldb_module *module, struct
                if (!req->controls) return replmd_replicated_request_werror(ar, WERR_NOMEM);
        }
 
-       /* This allows layers further down to know if a change came in
-          over replication and what the replication flags were */
-       rep_update = talloc_zero(ar, struct dsdb_control_replicated_update);
-       if (rep_update == NULL) {
-               return ldb_module_oom(module);
-       }
-       rep_update->dsdb_repl_flags = objs->dsdb_repl_flags;
-
-       ret = ldb_request_add_control(req, DSDB_CONTROL_REPLICATED_UPDATE_OID, false, rep_update);
+       ret = ldb_request_add_control(req, DSDB_CONTROL_REPLICATED_UPDATE_OID, false, NULL);
        if (ret != LDB_SUCCESS) {
                return ret;
        }
index 497f1da61aaf996912b5539552ad2f40fc00d8fa..0acffa1d0d6ba7b49a86d0fed786245f98055bea 100644 (file)
@@ -66,9 +66,6 @@ struct dsdb_control_current_partition {
 
 
 #define DSDB_CONTROL_REPLICATED_UPDATE_OID "1.3.6.1.4.1.7165.4.3.3"
-struct dsdb_control_replicated_update {
-       uint32_t dsdb_repl_flags;
-};
 
 #define DSDB_CONTROL_DN_STORAGE_FORMAT_OID "1.3.6.1.4.1.7165.4.3.4"
 /* DSDB_CONTROL_DN_STORAGE_FORMAT_OID has NULL data and behaves very