mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 06:59:54 -05:00
ITS#6360 fix cache cursize count
This commit is contained in:
parent
e7fd598c01
commit
0ecb68e02d
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue