summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/slap.h
diff options
context:
space:
mode:
authorNoriko Hosoi <nhosoi@redhat.com>2010-09-14 10:32:46 -0700
committerNoriko Hosoi <nhosoi@redhat.com>2010-09-15 10:29:34 -0700
commit529b056b2fda91263730da1da8ac9b42b54b72f4 (patch)
tree32565ec3ea975a9af2617eba667201345af7a631 /ldap/servers/slapd/slap.h
parent20d1e7c8e9280e2175ca843f60a50addc096f134 (diff)
downloadds-529b056b2fda91263730da1da8ac9b42b54b72f4.tar.gz
ds-529b056b2fda91263730da1da8ac9b42b54b72f4.tar.xz
ds-529b056b2fda91263730da1da8ac9b42b54b72f4.zip
Bug 558099 - Enhancement request: Log more information about the search result being a paged one
https://bugzilla.redhat.com/show_bug.cgi?id=558099 Description: searched entry count is logged in the access log as (nentries=<num>). When RFC 2696 page results control is passed, the nentries logs the page size instead of the total searched count. andrey.ivanov@polytechnique.fr proposed to log the control info as follows: [..] conn=# op=#RESULT err=0 tag=101 nentries=# etime=0 notes=P This patch implemented the spec. Also, there was a bug regarding unindexed note "notes=U" when the paged results control is received. Only the first page logs it, but not the rest. The bug was fixed.
Diffstat (limited to 'ldap/servers/slapd/slap.h')
-rw-r--r--ldap/servers/slapd/slap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ldap/servers/slapd/slap.h b/ldap/servers/slapd/slap.h
index 8a405926..1f4afd91 100644
--- a/ldap/servers/slapd/slap.h
+++ b/ldap/servers/slapd/slap.h
@@ -1392,6 +1392,10 @@ typedef struct conn {
#define CONN_FLAG_PAGEDRESULTS_WITH_SORT 64 /* paged results control is
* sent with server side sorting
*/
+
+#define CONN_FLAG_PAGEDRESULTS_UNINDEXED 128 /* If the search is unindexed,
+ * store the info in c_flags
+ */
#define CONN_GET_SORT_RESULT_CODE (-1)
#define START_TLS_OID "1.3.6.1.4.1.1466.20037"