From 41adaad0ad10380a94ce52a88fdd0c9fb657c212 Mon Sep 17 00:00:00 2001 From: Gary Williams Date: Wed, 28 Apr 1999 17:25:30 +0000 Subject: [PATCH] let ldif2id2entry complete before allowing other children to start --- servers/slapd/tools/ldif2ldbm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 */ -- 2.39.5