]> git.sur5r.net Git - openldap/commitdiff
Don't bother setting up threads if there are no indexed attrs (unlikely...)
authorHoward Chu <hyc@openldap.org>
Wed, 15 Nov 2006 01:20:34 +0000 (01:20 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 15 Nov 2006 01:20:34 +0000 (01:20 +0000)
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;