diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-10-30 11:24:15 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-10-30 23:49:00 +1100 |
commit | 046d38faa5e78f2bdcfcdb3b1582427c2ecc80b8 (patch) | |
tree | 3212537bdd1e74cc2153aacb229cab99e2e290db /source4/wrepl_server | |
parent | 3a7814826989b2ece34b8370c77bce9727814701 (diff) | |
download | samba-046d38faa5e78f2bdcfcdb3b1582427c2ecc80b8.tar.gz samba-046d38faa5e78f2bdcfcdb3b1582427c2ecc80b8.tar.bz2 samba-046d38faa5e78f2bdcfcdb3b1582427c2ecc80b8.zip |
s4-smbd: don't initialise process models more than once
this also removes the event_context parameter from process model
initialisation. It isn't needed, and is confusing when a process model
init can be called from more than one place, possibly with different
event contexts.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/wrepl_server')
-rw-r--r-- | source4/wrepl_server/wrepl_in_connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/wrepl_server/wrepl_in_connection.c b/source4/wrepl_server/wrepl_in_connection.c index a32b842e04..632c9a9a5b 100644 --- a/source4/wrepl_server/wrepl_in_connection.c +++ b/source4/wrepl_server/wrepl_in_connection.c @@ -357,7 +357,7 @@ NTSTATUS wreplsrv_in_connection_merge(struct wreplsrv_partner *partner, /* within the wrepl task we want to be a single process, so ask for the single process model ops and pass these to the stream_setup_socket() call. */ - model_ops = process_model_startup(service->task->event_ctx, "single"); + model_ops = process_model_startup("single"); if (!model_ops) { DEBUG(0,("Can't find 'single' process model_ops")); return NT_STATUS_INTERNAL_ERROR; @@ -430,7 +430,7 @@ NTSTATUS wreplsrv_setup_sockets(struct wreplsrv_service *service, struct loadpar /* within the wrepl task we want to be a single process, so ask for the single process model ops and pass these to the stream_setup_socket() call. */ - model_ops = process_model_startup(task->event_ctx, "single"); + model_ops = process_model_startup("single"); if (!model_ops) { DEBUG(0,("Can't find 'single' process model_ops")); return NT_STATUS_INTERNAL_ERROR; |