From d5673b5501225e295bae2a5c0084cf3ce5582dca Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 15 Sep 2010 18:59:17 +1000 Subject: s4-repl: cleanup the extended op calls in repl server - use generic parameter names - trigger a run of pending ops on all extended ops - don't prevent parallel fsmo transfers - moved extended op code into drepl_extended --- source4/dsdb/repl/drepl_service.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'source4/dsdb/repl/drepl_service.c') diff --git a/source4/dsdb/repl/drepl_service.c b/source4/dsdb/repl/drepl_service.c index 9a353b0c1fc..ae765a59799 100644 --- a/source4/dsdb/repl/drepl_service.c +++ b/source4/dsdb/repl/drepl_service.c @@ -170,7 +170,7 @@ static WERROR _drepl_schedule_replication(struct dreplsrv_service *service, TALLOC_CTX *mem_ctx) { WERROR werr; - dreplsrv_fsmo_callback_t fn_callback = NULL; + dreplsrv_extended_callback_t fn_callback = NULL; if (data) { fn_callback = _drepl_replica_sync_done_cb; @@ -358,12 +358,19 @@ static NTSTATUS drepl_take_FSMO_role(struct irpc_message *msg, static NTSTATUS drepl_trigger_repl_secret(struct irpc_message *msg, struct drepl_trigger_repl_secret *r) { + struct dreplsrv_service *service = talloc_get_type(msg->private_data, + struct dreplsrv_service); + + + drepl_repl_secret(service, r->in.user_dn); + /* we are not going to be sending a reply to this request */ msg->no_reply = true; - DEBUG(0,(__location__ ": got drepl_trigger_repl_secret with %s\n", r->in.user_dn)); + return NT_STATUS_OK; } + /* startup the dsdb replicator service task */ -- cgit