]> git.sur5r.net Git - openldap/commitdiff
only loop for read/search/bind
authorPierangelo Masarati <ando@openldap.org>
Fri, 31 Mar 2006 21:35:56 +0000 (21:35 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 31 Mar 2006 21:35:56 +0000 (21:35 +0000)
tests/progs/slapd-tester.c

index 03d47f3c21ea3d69802ab9da310da18c6cde6a97..17f44c2116221e39c373b7b9395e6ef542cbebc7 100644 (file)
@@ -620,25 +620,19 @@ main( int argc, char **argv )
                        fork_child( rcmd, rargs );
                }
 
-               if ( DOREQ( mnum, j ) ) {
-                       int     jj = j % mnum;
-
-                       margs[manum - 2] = mreqs[jj];
+               if ( j < mnum ) {
+                       margs[manum - 2] = mreqs[j];
                        fork_child( mcmd, margs );
                }
 
-               if ( DOREQ( modnum, j ) ) {
-                       int     jj = j % modnum;
-
-                       modargs[modanum - 4] = moddn[jj];
-                       modargs[modanum - 2] = modreqs[jj];
+               if ( j < modnum ) {
+                       modargs[modanum - 4] = moddn[j];
+                       modargs[modanum - 2] = modreqs[j];
                        fork_child( modcmd, modargs );
                }
 
-               if ( DOREQ( anum, j ) ) {
-                       int     jj = j % anum;
-
-                       aargs[aanum - 2] = afiles[jj];
+               if ( j < anum ) {
+                       aargs[aanum - 2] = afiles[j];
                        fork_child( acmd, aargs );
                }