summaryrefslogtreecommitdiffstats
path: root/source4/dsdb/repl/drepl_service.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-15 18:59:17 +1000
committerAndrew Tridgell <tridge@samba.org>2010-09-16 07:24:01 +1000
commitd5673b5501225e295bae2a5c0084cf3ce5582dca (patch)
treeba4062891a49a3ac9e2f2a8698a1aea37a01535f /source4/dsdb/repl/drepl_service.c
parentaabd89d8f7d80d614c941111d7a049f9f35b943b (diff)
downloadsamba-d5673b5501225e295bae2a5c0084cf3ce5582dca.tar.gz
samba-d5673b5501225e295bae2a5c0084cf3ce5582dca.tar.xz
samba-d5673b5501225e295bae2a5c0084cf3ce5582dca.zip
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
Diffstat (limited to 'source4/dsdb/repl/drepl_service.c')
-rw-r--r--source4/dsdb/repl/drepl_service.c11
1 files changed, 9 insertions, 2 deletions
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
*/