summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-10-11 17:22:24 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-10-11 13:45:13 +0000
commit13ba3464c08208a1dc00a3edb55281b15ddd44a7 (patch)
tree955a7fb3254360e1bda37418ba591c001d289e76 /source4/lib/ldb/common
parent7013a3e39090dcac768d551a1c5cd0112f53a050 (diff)
downloadsamba-13ba3464c08208a1dc00a3edb55281b15ddd44a7.tar.gz
samba-13ba3464c08208a1dc00a3edb55281b15ddd44a7.tar.bz2
samba-13ba3464c08208a1dc00a3edb55281b15ddd44a7.zip
ldb The use of a private event context isn't a hack
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
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb.c5
1 files changed, 3 insertions, 2 deletions
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);