]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Fix ITS#3666, don't add EntryInfo to LRU list twice
authorHoward Chu <hyc@openldap.org>
Sat, 16 Apr 2005 20:56:05 +0000 (20:56 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 16 Apr 2005 20:56:05 +0000 (20:56 +0000)
servers/slapd/back-bdb/cache.c

index 7aa00628ce669fcb05681f4d5c7db5592dcad69f..55e9cc63d504084bcfdd8fdc84fa165923603eab 100644 (file)
@@ -562,7 +562,9 @@ bdb_cache_lru_add(
                        }
                }
        }
-       LRU_ADD( &bdb->bi_cache, ei );
+       if ( bdb->bi_cache.c_lruhead != ei ) {
+               LRU_ADD( &bdb->bi_cache, ei );
+       }
        ldap_pvt_thread_mutex_unlock( &bdb->bi_cache.lru_mutex );
 }