mirror of
https://github.com/samba-team/samba.git
synced 2025-02-18 17:57:55 +03:00
Now that we pass down the event context, start removing calls to
event_context_init() where possible (This used to be commit 412f7a98dd809306ac9f35003fce554e1e1252e7)
This commit is contained in:
parent
4d8804f26c
commit
1a7823823e
@ -45,6 +45,8 @@ struct ldb_context *ldb_init(TALLOC_CTX *mem_ctx, struct event_context *ev_ctx)
|
||||
int ret;
|
||||
|
||||
ldb = talloc_zero(mem_ctx, struct ldb_context);
|
||||
/* FIXME: Hack a new event context so that CMD line utilities work
|
||||
* until we have them all converted */
|
||||
if (ev_ctx == NULL) {
|
||||
ev_ctx = event_context_init(ldb);
|
||||
}
|
||||
|
@ -760,14 +760,6 @@ static int ildb_connect(struct ldb_context *ldb, const char *url,
|
||||
|
||||
event_ctx = ldb_get_event_context(ldb);
|
||||
|
||||
/* FIXME: We must make the event context an explicit parameter, but we
|
||||
* need to build the events library separately first. Hack a new event
|
||||
* context so that CMD line utilities work until we have them all
|
||||
* converted */
|
||||
if (event_ctx == NULL) {
|
||||
event_ctx = event_context_init(NULL);
|
||||
}
|
||||
|
||||
ildb->ldap = ldap4_new_connection(ildb, ldb_get_opaque(ldb, "loadparm"),
|
||||
event_ctx);
|
||||
if (!ildb->ldap) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user