From: Howard Chu Date: Wed, 4 Nov 2009 00:47:45 +0000 (+0000) Subject: ITS#6360 fix cache cursize count X-Git-Tag: ACLCHECK_0~147 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ecb68e02d04f4fee55460550af255848fdc5103;p=openldap ITS#6360 fix cache cursize count --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index fab4b1e09e..bff580396e 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -972,6 +972,9 @@ load1: */ if ( (*eip)->bei_state & CACHE_ENTRY_NOT_CACHED ) { (*eip)->bei_state &= ~CACHE_ENTRY_NOT_CACHED; + ldap_pvt_thread_mutex_lock( &bdb->bi_cache.c_count_mutex ); + ++bdb->bi_cache.c_cursize; + ldap_pvt_thread_mutex_unlock( &bdb->bi_cache.c_count_mutex ); } flag &= ~ID_NOCACHE; }