Skip to content

Commit

Permalink
Merge pull request #909 from amousset/bug_7667/disable_ldap_logging_o…
Browse files Browse the repository at this point in the history
…n_non_existing_indexes

Fixes #7667: Disable ldap logging on non existing indexes
  • Loading branch information
jooooooon committed Apr 29, 2016
2 parents a934d35 + b9fd1e3 commit 7a06728
Showing 1 changed file with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
diff -upr a/servers/slapd/back-bdb/filterindex.c b/servers/slapd/back-bdb/filterindex.c
--- a/servers/slapd/back-bdb/filterindex.c 2012-02-29 18:37:09.000000000 +0100
+++ b/servers/slapd/back-bdb/filterindex.c 2016-04-29 16:29:56.445900531 +0200
@@ -737,7 +737,7 @@ equality_candidates(
&db, &mask, &prefix );

if ( rc == LDAP_INAPPROPRIATE_MATCHING ) {
- Debug( LDAP_DEBUG_ANY,
+ Debug( LDAP_DEBUG_TRACE,
"<= bdb_equality_candidates: (%s) not indexed\n",
ava->aa_desc->ad_cname.bv_val, 0, 0 );
return 0;
@@ -854,7 +854,7 @@ approx_candidates(
&db, &mask, &prefix );

if ( rc == LDAP_INAPPROPRIATE_MATCHING ) {
- Debug( LDAP_DEBUG_ANY,
+ Debug( LDAP_DEBUG_TRACE,
"<= bdb_approx_candidates: (%s) not indexed\n",
ava->aa_desc->ad_cname.bv_val, 0, 0 );
return 0;
@@ -974,7 +974,7 @@ substring_candidates(
&db, &mask, &prefix );

if ( rc == LDAP_INAPPROPRIATE_MATCHING ) {
- Debug( LDAP_DEBUG_ANY,
+ Debug( LDAP_DEBUG_TRACE,
"<= bdb_substring_candidates: (%s) not indexed\n",
sub->sa_desc->ad_cname.bv_val, 0, 0 );
return 0;
@@ -1091,7 +1091,7 @@ inequality_candidates(
&db, &mask, &prefix );

if ( rc == LDAP_INAPPROPRIATE_MATCHING ) {
- Debug( LDAP_DEBUG_ANY,
+ Debug( LDAP_DEBUG_TRACE,
"<= bdb_inequality_candidates: (%s) not indexed\n",
ava->aa_desc->ad_cname.bv_val, 0, 0 );
return 0;

0 comments on commit 7a06728

Please sign in to comment.