s4:dsdb Remove default instanceType from repl_meta_data
authorAndrew Bartlett <abartlet@samba.org>
Mon, 19 Oct 2009 01:03:50 +0000 (12:03 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 21 Oct 2009 11:43:54 +0000 (22:43 +1100)
This is no longer required, as the instancetype module is now above
repl_meta_data.

Andrew Bartlett

source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index 2dd8b5c3038e34a5c27d07d0cf6fe5c87db1ef69..90ff238aa2c2b4d5c74acdbe4edbd02901926225 100644 (file)
@@ -500,15 +500,6 @@ static int replmd_add(struct ldb_module *module, struct ldb_request *req)
        ldb_msg_remove_attr(msg, "uSNChanged");
        ldb_msg_remove_attr(msg, "replPropertyMetaData");
 
-       if (!ldb_msg_find_element(req->op.add.message, "instanceType")) {
-               ret = ldb_msg_add_fmt(msg, "instanceType", "%u", INSTANCE_TYPE_WRITE);
-               if (ret != LDB_SUCCESS) {
-                       ldb_oom(ldb);
-                       talloc_free(ac);
-                       return ret;
-               }
-       }
-
        /*
         * readd replicated attributes
         */