mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
mdssvc: pass messaging context to mds_init_ctx()
This is needed in a subsequent commit. Note that I prefer to do the event context unwrapping in the caller and pass both the event and messaging context explicitly to mds_init_ctx(). BUG: https://bugzilla.samba.org/show_bug.cgi?id=14740 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
8847f46f75
commit
1ef2828e10
@ -1525,6 +1525,7 @@ static int mds_ctx_destructor_cb(struct mds_ctx *mds_ctx)
|
||||
**/
|
||||
struct mds_ctx *mds_init_ctx(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
struct messaging_context *msg_ctx,
|
||||
struct auth_session_info *session_info,
|
||||
int snum,
|
||||
const char *sharename,
|
||||
|
@ -150,6 +150,7 @@ extern bool mds_init(struct messaging_context *msg_ctx);
|
||||
extern bool mds_shutdown(void);
|
||||
struct mds_ctx *mds_init_ctx(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
struct messaging_context *msg_ctx,
|
||||
struct auth_session_info *session_info,
|
||||
int snum,
|
||||
const char *sharename,
|
||||
|
@ -96,6 +96,7 @@ static NTSTATUS create_mdssvc_policy_handle(TALLOC_CTX *mem_ctx,
|
||||
|
||||
mds_ctx = mds_init_ctx(mem_ctx,
|
||||
messaging_tevent_context(p->msg_ctx),
|
||||
p->msg_ctx,
|
||||
p->session_info,
|
||||
snum,
|
||||
sharename,
|
||||
|
Loading…
x
Reference in New Issue
Block a user