]> git.sur5r.net Git - openldap/commitdiff
Add "nentries" to send_search_result() Statslog message. Suggested
authorHoward Chu <hyc@openldap.org>
Tue, 16 Apr 2002 04:58:41 +0000 (04:58 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 16 Apr 2002 04:58:41 +0000 (04:58 +0000)
by ITS#1360.

servers/slapd/result.c

index 8c96ff0239683f6f1b0d69de9297b65ec2e695af..4343f90794cec7729ff25b0d62fa4b9bfbc0f9c8 100644 (file)
@@ -594,10 +594,15 @@ send_search_result(
                err, matched, text, refs,
                NULL, NULL, NULL, ctrls );
 
+       {
+       char nbuf[64];
+       sprintf( nbuf, "%ld nentries=%d", (long) err, nentries );
+
        Statslog( LDAP_DEBUG_STATS,
-           "conn=%ld op=%ld SEARCH RESULT tag=%lu err=%ld text=%s\n",
+           "conn=%ld op=%ld SEARCH RESULT tag=%lu err=%s text=%s\n",
                (long) op->o_connid, (long) op->o_opid,
-               (unsigned long) tag, (long) err, text ? text : "" );
+               (unsigned long) tag, nbuf, text ? text : "" );
+       }
 
        if (tmp != NULL) {
            ch_free(tmp);