summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_tdb
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-11-24 00:14:10 +0300
committerMatthieu Patou <mat@matws.net>2010-11-26 23:46:06 +0300
commite8ae340421aa62d396543d183641eeecf0ab2b96 (patch)
tree11777aa6f0a3cdf0fffdd39373021d3468aa57fc /source4/lib/ldb/ldb_tdb
parent70a7da0e101910e3ceb08b86d4b840b219e24d7d (diff)
downloadsamba-e8ae340421aa62d396543d183641eeecf0ab2b96.tar.gz
samba-e8ae340421aa62d396543d183641eeecf0ab2b96.tar.bz2
samba-e8ae340421aa62d396543d183641eeecf0ab2b96.zip
ldb-tdb: Add more information about full scan
Diffstat (limited to 'source4/lib/ldb/ldb_tdb')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_search.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_search.c b/source4/lib/ldb/ldb_tdb/ldb_search.c
index b58243c26c..a49751de15 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_search.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_search.c
@@ -582,7 +582,13 @@ int ltdb_search(struct ltdb_context *ctx)
/* useful for debugging when slow performance
* is caused by unindexed searches */
char *expression = ldb_filter_from_tree(ctx, ctx->tree);
- ldb_debug(ldb, LDB_DEBUG_WARNING, "ldb FULL SEARCH: %s\n", expression);
+ ldb_debug(ldb, LDB_DEBUG_WARNING, "ldb FULL SEARCH: %s SCOPE: %s DN: %s\n",
+ expression,
+ req->op.search.scope==LDB_SCOPE_BASE?"base":
+ req->op.search.scope==LDB_SCOPE_ONELEVEL?"one":
+ req->op.search.scope==LDB_SCOPE_SUBTREE?"sub":"UNKNOWN",
+ ldb_dn_get_linearized(req->op.search.base));
+
talloc_free(expression);
}
if (match_count != 0) {