summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-23 20:19:49 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-23 22:14:58 +1100
commit3a8b67d06cf631f4d883ce40859401eb760bb0f3 (patch)
treee83e5260f822d464075a224baf701e40bbcdf33b /source4/lib/ldb/common
parent439ff8717d41fb641f2a2cf2b14665edf375433d (diff)
downloadsamba-3a8b67d06cf631f4d883ce40859401eb760bb0f3.tar.gz
samba-3a8b67d06cf631f4d883ce40859401eb760bb0f3.tar.bz2
samba-3a8b67d06cf631f4d883ce40859401eb760bb0f3.zip
s4-ldb: added an environment varibale LDB_WARN_UNINDEXED
when LDB_WARN_UNINDEXED is set, we produce warnings about unindexed searches. This makes it easier to find performance problems caused by unindexed searches.
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb_parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_parse.c b/source4/lib/ldb/common/ldb_parse.c
index 16b3e217fe..b4eabf8375 100644
--- a/source4/lib/ldb/common/ldb_parse.c
+++ b/source4/lib/ldb/common/ldb_parse.c
@@ -679,7 +679,7 @@ struct ldb_parse_tree *ldb_parse_tree(TALLOC_CTX *mem_ctx, const char *s)
/*
construct a ldap parse filter given a parse tree
*/
-char *ldb_filter_from_tree(TALLOC_CTX *mem_ctx, struct ldb_parse_tree *tree)
+char *ldb_filter_from_tree(TALLOC_CTX *mem_ctx, const struct ldb_parse_tree *tree)
{
char *s, *s2, *ret;
unsigned int i;