Don't bother setting up threads if there are no indexed attrs (unlikely...)

This commit is contained in:
Howard Chu 2006-11-15 01:20:34 +00:00
parent 4b6a3e8b6d
commit ee0026ec1e

View 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;