From: Gary Williams Date: Wed, 28 Apr 1999 17:25:30 +0000 (+0000) Subject: let ldif2id2entry complete before allowing other children to start X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~129 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=41adaad0ad10380a94ce52a88fdd0c9fb657c212;p=openldap let ldif2id2entry complete before allowing other children to start --- diff --git a/servers/slapd/tools/ldif2ldbm.c b/servers/slapd/tools/ldif2ldbm.c index d57dacd2e6..5426c606b3 100644 --- a/servers/slapd/tools/ldif2ldbm.c +++ b/servers/slapd/tools/ldif2ldbm.c @@ -58,6 +58,7 @@ main( int argc, char **argv ) int dbnum; ID id; int rc; + int cmdkids = 1; Backend *be = NULL; struct ldbminfo *li; struct berval bv; @@ -87,7 +88,7 @@ main( int argc, char **argv ) break; case 'j': /* number of parallel index procs */ - maxkids = atoi( optarg ); + cmdkids = atoi( optarg ); break; case 'n': /* which config file db to index */ @@ -170,6 +171,8 @@ main( int argc, char **argv ) args[i++] = NULL; fork_child( cmd, args ); + maxkids = cmdkids; + /* * generate the dn2id and id2children indexes */