diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-01-11 10:21:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:40:21 -0500 |
commit | fbba1b39d47224feed48f904c59221008c3bf090 (patch) | |
tree | 28b78e6da8c7103fbbe70527f728ae4e7b1efd33 /source4/dsdb/repl | |
parent | f68dff9f81afc8b107ad41d5b446f33ecdc2fcb1 (diff) | |
download | samba-fbba1b39d47224feed48f904c59221008c3bf090.tar.gz samba-fbba1b39d47224feed48f904c59221008c3bf090.tar.bz2 samba-fbba1b39d47224feed48f904c59221008c3bf090.zip |
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)
Diffstat (limited to 'source4/dsdb/repl')
-rw-r--r-- | source4/dsdb/repl/replicated_objects.c | 30 |
1 files changed, 8 insertions, 22 deletions
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); |