]> git.sur5r.net Git - openldap/commitdiff
let ldif2id2entry complete before allowing other children to start
authorGary Williams <gwilliams@openldap.org>
Wed, 28 Apr 1999 17:25:30 +0000 (17:25 +0000)
committerGary Williams <gwilliams@openldap.org>
Wed, 28 Apr 1999 17:25:30 +0000 (17:25 +0000)
servers/slapd/tools/ldif2ldbm.c

index d57dacd2e67fd774c5f5d0f2f872ece1232698c0..5426c606b36536e2be7ddbb58162b8da901374b6 100644 (file)
@@ -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
         */