]> git.sur5r.net Git - openldap/commitdiff
Include refcnt > 0, which makes reporting of number of records to process
authorRandy Kunkee <kunkee@openldap.org>
Wed, 26 Apr 2000 01:05:44 +0000 (01:05 +0000)
committerRandy Kunkee <kunkee@openldap.org>
Wed, 26 Apr 2000 01:05:44 +0000 (01:05 +0000)
more correct (still doesn't account for records that won't be processed
due to a restart).

servers/slurpd/rq.c

index 207b1c8ce0a538131a6c43f4e348181d6f5c216f..d2f5e50d5ad7c5bbf65fdd922a88bbf2a508aafc 100644 (file)
@@ -377,7 +377,7 @@ Rq_getcount(
        for ( re = rq->rq_gethead( rq ); re != NULL;
                re = rq->rq_getnext( re )) {
            if ( type == RQ_COUNT_NZRC ) {
-               if ( re->re_getrefcnt( re ) > 1 ) {
+               if ( re->re_getrefcnt( re ) > 0 ) {
                    count++;
                }
            }