From 0ecb68e02d04f4fee55460550af255848fdc5103 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 4 Nov 2009 00:47:45 +0000 Subject: [PATCH] ITS#6360 fix cache cursize count --- servers/slapd/back-bdb/cache.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5