mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 23:19:59 -05:00
Don't bother setting up threads if there are no indexed attrs (unlikely...)
This commit is contained in:
parent
4b6a3e8b6d
commit
ee0026ec1e
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue