]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Don't bother setting up threads if there are no indexed attrs
authorQuanah Gibson-Mount <quanah@openldap.org>
Sat, 16 Dec 2006 01:37:27 +0000 (01:37 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Sat, 16 Dec 2006 01:37:27 +0000 (01:37 +0000)
servers/slapd/back-bdb/tools.c

index 167f3c7e5e2b46d198a5e2114a5cba5933a87cf3..0bf9b1c79303010d91e068446926f02b5d569734 100644 (file)
@@ -391,6 +391,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;