diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-09-24 12:07:16 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-09-25 10:38:45 -0700 |
commit | f4893e7d33b7c9aaafba5ce8657972d3eb600257 (patch) | |
tree | 272feafb24baf123578161ac58524393138e4270 /source4/lib/ldb/common/ldb_modules.c | |
parent | d72dbe847e0db605e950e6656d758cb60bf628a7 (diff) | |
download | samba-f4893e7d33b7c9aaafba5ce8657972d3eb600257.tar.gz samba-f4893e7d33b7c9aaafba5ce8657972d3eb600257.tar.bz2 samba-f4893e7d33b7c9aaafba5ce8657972d3eb600257.zip |
ldb: added request location tracking
this is used to help debug async ldb requests. The ldb request handle
now contains a location string and the parent request pointer. This
allows us to print a backtrace of ldb requests in the dsdb modules.
Diffstat (limited to 'source4/lib/ldb/common/ldb_modules.c')
-rw-r--r-- | source4/lib/ldb/common/ldb_modules.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index a0e8b7e5c9..dc0ce91ecd 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -711,6 +711,8 @@ struct ldb_handle *ldb_handle_new(TALLOC_CTX *mem_ctx, struct ldb_context *ldb) h->state = LDB_ASYNC_INIT; h->ldb = ldb; h->flags = 0; + h->location = NULL; + h->parent = NULL; return h; } |