From: Randy Kunkee Date: Wed, 26 Apr 2000 01:05:44 +0000 (+0000) Subject: Include refcnt > 0, which makes reporting of number of records to process X-Git-Tag: OPENLDAP_REL_ENG_1_2_11~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e34ff9584f989d588ea9ae05023fa75d14e05ab;p=thirdparty%2Fopenldap.git Include refcnt > 0, which makes reporting of number of records to process more correct (still doesn't account for records that won't be processed due to a restart). --- diff --git a/servers/slurpd/rq.c b/servers/slurpd/rq.c index 207b1c8ce0..d2f5e50d5a 100644 --- a/servers/slurpd/rq.c +++ b/servers/slurpd/rq.c @@ -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++; } }