From 56aa6ba1f4832451925f5e12e44d688c94356890 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 31 Mar 2006 21:35:56 +0000 Subject: [PATCH] only loop for read/search/bind --- tests/progs/slapd-tester.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/tests/progs/slapd-tester.c b/tests/progs/slapd-tester.c index 03d47f3c21..17f44c2116 100644 --- a/tests/progs/slapd-tester.c +++ b/tests/progs/slapd-tester.c @@ -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 ); } -- 2.39.5