ldb The use of a private event context isn't a hack
authorAndrew Bartlett <abartlet@samba.org>
Mon, 11 Oct 2010 06:22:24 +0000 (17:22 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 11 Oct 2010 13:45:13 +0000 (13:45 +0000)
This is deliberate behaviour.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Oct 11 13:45:14 UTC 2010 on sn-devel-104

source4/lib/ldb/common/ldb.c

index f1eb6b64d591629826ce7583c9507ac7942923c4..922237482f74b6fb6ca751fc47f5efad0e65cdd4 100644 (file)
@@ -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);