]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#4010 for prev commit, fix slapindex etc. as well.
authorHoward Chu <hyc@openldap.org>
Thu, 8 Sep 2005 15:47:08 +0000 (15:47 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 8 Sep 2005 15:47:08 +0000 (15:47 +0000)
servers/slapd/back-bdb/cache.c

index dc7c32d2114032d516b94512e0984577ed04c80f..a7581ebd099bd34bf2f43b29b1e4c1f9f90fc3c4 100644 (file)
@@ -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 );