diff options
author | Nathan Kinder <nkinder@redhat.com> | 2008-08-08 15:53:10 +0000 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2008-08-08 15:53:10 +0000 |
commit | 6a2f78600bda933713c5bebe6954ed8c39fddc48 (patch) | |
tree | cf9e14c58cad3c6937cc139998339dc6a91cd22a /ldap/servers/slapd/back-ldbm | |
parent | 39e056a4fccbb95424f9b22cb5127c3a4972bc23 (diff) | |
download | ds-6a2f78600bda933713c5bebe6954ed8c39fddc48.tar.gz ds-6a2f78600bda933713c5bebe6954ed8c39fddc48.tar.xz ds-6a2f78600bda933713c5bebe6954ed8c39fddc48.zip |
Resolves: 458135
Summary: Don't log SORT control message for internal operations.
Diffstat (limited to 'ldap/servers/slapd/back-ldbm')
-rw-r--r-- | ldap/servers/slapd/back-ldbm/ldbm_search.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_search.c b/ldap/servers/slapd/back-ldbm/ldbm_search.c index b9ca5cbf..d8b7f063 100644 --- a/ldap/servers/slapd/back-ldbm/ldbm_search.c +++ b/ldap/servers/slapd/back-ldbm/ldbm_search.c @@ -478,9 +478,12 @@ ldbm_back_search( Slapi_PBlock *pb ) char *sort_error_type = NULL; int sort_return_value = 0; - /* Log to the access log the particulars of this sort request */ - /* Log message looks like this: SORT <key list useful for input to ldapsearch> <#candidates> | <unsortable> */ - sort_log_access(pb,sort_control,candidates); + /* Don't log internal operations */ + if (!operation_is_flag_set(operation, OP_FLAG_INTERNAL)) { + /* Log to the access log the particulars of this sort request */ + /* Log message looks like this: SORT <key list useful for input to ldapsearch> <#candidates> | <unsortable> */ + sort_log_access(pb,sort_control,candidates); + } sort_return_value = sort_candidates( be, lookthrough_limit, time_up, pb, candidates, sort_control, &sort_error_type ); /* Fix for bugid # 394184, SD, 20 Jul 00 */ /* replace the hard coded return value by the appropriate LDAP error code */ |