]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/tools.c
Ditch LRU cache replacement in favor of 2nd-chance/clock.
[openldap] / servers / slapd / back-bdb / tools.c
index 293beca6cf831e18110a93301e483d2d33ca1fb6..f3830331c6f199f73251a03caefc269958b287c0 100644 (file)
@@ -424,6 +424,9 @@ bdb_tool_index_add(
 {
        struct bdb_info *bdb = (struct bdb_info *) op->o_bd->be_private;
 
+       if ( !bdb->bi_nattrs )
+               return 0;
+
        if ( slapMode & SLAP_TOOL_QUICK ) {
                IndexRec *ir;
                int i, rc;