From fbba1b39d47224feed48f904c59221008c3bf090 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 11 Jan 2007 10:21:38 +0000 Subject: r20682: make the dsdb_extended_replicated_objects_commit() interface a bit more useful, so that we can apply the schema partition objects with one call metze (This used to be commit 165ff94b8a89ef4b9145405633ed11ab9567376b) --- source4/dsdb/repl/replicated_objects.c | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) (limited to 'source4/dsdb/repl') diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index 3a914c6774..0ccb46b9c8 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -178,37 +178,23 @@ static WERROR dsdb_convert_object(struct ldb_context *ldb, WERROR dsdb_extended_replicated_objects_commit(struct ldb_context *ldb, const char *partition_dn, const struct dsdb_schema *schema, - uint32_t ctr_level, - const struct drsuapi_DsGetNCChangesCtr1 *ctr1, - const struct drsuapi_DsGetNCChangesCtr6 *ctr6, + const struct drsuapi_DsReplicaOIDMapping_Ctr *mapping_ctr, + uint32_t object_count, + const struct drsuapi_DsReplicaObjectListItemEx *first_object, + uint32_t linked_attributes_count, + const struct drsuapi_DsReplicaLinkedAttribute *linked_attributes, + const struct drsuapi_DsReplicaHighWaterMark *new_highwatermark, + const struct drsuapi_DsReplicaCursor2CtrEx *uptodateness_vector, TALLOC_CTX *mem_ctx, struct dsdb_extended_replicated_objects **_out) { WERROR status; struct dsdb_extended_replicated_objects *out; struct ldb_result *ext_res; - const struct drsuapi_DsReplicaOIDMapping_Ctr *mapping_ctr; - uint32_t object_count; - struct drsuapi_DsReplicaObjectListItemEx *first_object; - struct drsuapi_DsReplicaObjectListItemEx *cur; + const struct drsuapi_DsReplicaObjectListItemEx *cur; uint32_t i; int ret; - switch (ctr_level) { - case 1: - mapping_ctr = &ctr1->mapping_ctr; - object_count = ctr1->object_count; - first_object = ctr1->first_object; - break; - case 6: - mapping_ctr = &ctr6->mapping_ctr; - object_count = ctr6->object_count; - first_object = ctr6->first_object; - break; - default: - return WERR_INVALID_PARAM; - } - status = dsdb_verify_oid_mappings(schema, mapping_ctr); W_ERROR_NOT_OK_RETURN(status); -- cgit