From 13ba3464c08208a1dc00a3edb55281b15ddd44a7 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 11 Oct 2010 17:22:24 +1100 Subject: ldb The use of a private event context isn't a hack This is deliberate behaviour. Andrew Bartlett Autobuild-User: Andrew Bartlett Autobuild-Date: Mon Oct 11 13:45:14 UTC 2010 on sn-devel-104 --- source4/lib/ldb/common/ldb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source4/lib/ldb') diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index f1eb6b64d5..922237482f 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -94,8 +94,9 @@ struct ldb_context *ldb_init(TALLOC_CTX *mem_ctx, struct tevent_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 */ + /* A new event context so that callers who don't want ldb + * operating on thier global event context can work without + * having to provide their own private one explicitly */ if (ev_ctx == NULL) { ev_ctx = tevent_context_init(ldb); tevent_set_debug(ev_ctx, ldb_tevent_debug, ldb); -- cgit