mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
ldb: Force use of a private event context in ldb_tdb
ldb_tdb holds locks while making callbacks, so force the use of a per-request event context Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
cd97f45976
commit
25795c3da9
@ -1556,6 +1556,13 @@ static int ltdb_connect(struct ldb_context *ldb, const char *url,
|
||||
int tdb_flags, open_flags;
|
||||
struct ltdb_private *ltdb;
|
||||
|
||||
/*
|
||||
* We hold locks, so we must use a private event context
|
||||
* on each returned handle
|
||||
*/
|
||||
|
||||
ldb_set_require_private_event_context(ldb);
|
||||
|
||||
/* parse the url */
|
||||
if (strchr(url, ':')) {
|
||||
if (strncmp(url, "tdb://", 6) != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user