summaryrefslogtreecommitdiff
path: root/lib/ldb/common/ldb.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2017-05-12 02:30:01 +0200
committerAndrew Bartlett <abartlet@samba.org>2017-05-31 06:34:27 +0200
commite67d3568e5853387d0675ed13d51df21e6274770 (patch)
tree5cf6530b6219db478ff3eaf5d850a55854d5a9c2 /lib/ldb/common/ldb.c
parent25795c3da920adba845367bf3394b5ba5912c1d5 (diff)
downloadsamba-e67d3568e5853387d0675ed13d51df21e6274770.tar.gz
ldb: Use the private event context in ldb_tdb and ldb_wait()
This enables the previous commits, and ensures that ldb_tdb is safe from operations while locks are held Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'lib/ldb/common/ldb.c')
-rw-r--r--lib/ldb/common/ldb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/common/ldb.c b/lib/ldb/common/ldb.c
index 3b2dbe79a2e..a0333826724 100644
--- a/lib/ldb/common/ldb.c
+++ b/lib/ldb/common/ldb.c
@@ -605,7 +605,7 @@ int ldb_wait(struct ldb_handle *handle, enum ldb_wait_type type)
return handle->status;
}
- ev = ldb_get_event_context(handle->ldb);
+ ev = ldb_handle_get_event_context(handle);
if (NULL == ev) {
return ldb_oom(handle->ldb);
}