From: Howard Chu Date: Thu, 8 Sep 2005 15:47:08 +0000 (+0000) Subject: ITS#4010 for prev commit, fix slapindex etc. as well. X-Git-Tag: OPENLDAP_REL_ENG_2_2_29~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8aa0435f8830db01cf3fd5a37003d8bce61dbc4a;p=thirdparty%2Fopenldap.git ITS#4010 for prev commit, fix slapindex etc. as well. --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index dc7c32d211..a7581ebd09 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -565,10 +565,10 @@ bdb_cache_lru_add( elru->bei_e = NULL; decr = 1; } - /* ITS#4010 if we're in slapcat, and this node is a leaf - * node, free it. + /* ITS#4010 if we're in slapcat/slapindex, and this node + * is a leaf node, free it. */ - if ( slapMode & SLAP_TOOL_READONLY ) { + if ( slapMode & SLAP_TOOL_READMAIN ) { if ( !elru->bei_kids ) { /* This does LRU_DELETE for us */ bdb_cache_delete_internal( &bdb->bi_cache, elru, 0 );