From e8ae340421aa62d396543d183641eeecf0ab2b96 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Wed, 24 Nov 2010 00:14:10 +0300 Subject: ldb-tdb: Add more information about full scan --- source4/lib/ldb/ldb_tdb/ldb_search.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source4') 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) { -- cgit