]> git.sur5r.net Git - openldap/commitdiff
ITS#4797
authorHoward Chu <hyc@openldap.org>
Mon, 8 Jan 2007 19:10:23 +0000 (19:10 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 8 Jan 2007 19:10:23 +0000 (19:10 +0000)
servers/slapd/back-bdb/cache.c

index 1a23efeb2dc4893b1a2779c9cec8f2c6c7bf9393..667f6f7c6aea06914dbd43ae4c63da02709c42a9 100644 (file)
@@ -987,6 +987,8 @@ bdb_cache_add(
        }
        ldap_pvt_thread_mutex_unlock( &bdb->bi_cache.c_count_mutex );
 
+       bdb_cache_lru_link( bdb, new );
+
        if ( purge )
                bdb_cache_lru_purge( bdb );