]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9620 Only persistent entries are stored in the cache
authorOndřej Kuzník <okuznik@symas.com>
Thu, 29 Jul 2021 12:22:28 +0000 (13:22 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 6 Aug 2021 18:51:51 +0000 (18:51 +0000)
servers/slapd/back-monitor/cache.c

index f695cce99a2d3a344a711cd61728aa3f39815472..ac56ca374f452eec13860bc9a94c9cd4fe58d886 100644 (file)
@@ -362,18 +362,6 @@ monitor_cache_release(
        mp = ( monitor_entry_t * )e->e_private;
 
        if ( mp->mp_flags & MONITOR_F_VOLATILE ) {
-               monitor_cache_t *mc, tmp_mc;
-
-               /* volatile entries do not return to cache */
-               ldap_pvt_thread_mutex_lock( &mi->mi_cache_mutex );
-               tmp_mc.mc_ndn = e->e_nname;
-               mc = ldap_avl_delete( &mi->mi_cache,
-                               ( caddr_t )&tmp_mc, monitor_cache_cmp );
-               ldap_pvt_thread_mutex_unlock( &mi->mi_cache_mutex );
-               if ( mc != NULL ) {
-                       ch_free( mc );
-               }
-               
                ldap_pvt_thread_mutex_unlock( &mp->mp_mutex );
                ldap_pvt_thread_mutex_destroy( &mp->mp_mutex );
                ch_free( mp );