ITS#6360 fix cache cursize count

This commit is contained in:
Howard Chu 2009-11-04 00:47:45 +00:00
parent e7fd598c01
commit 0ecb68e02d

View File

@ -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;
}