From c20c8baf2e3cc8c64a3e05a8ef1c72711a8015b0 Mon Sep 17 00:00:00 2001 From: "joreland@mysql.com" <> Date: Mon, 6 Sep 2004 10:13:54 +0200 Subject: [PATCH] removed faked do_work --- ndb/test/ndbapi/testReadPerf.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/ndb/test/ndbapi/testReadPerf.cpp b/ndb/test/ndbapi/testReadPerf.cpp index 88c21944864..ea39e92558a 100644 --- a/ndb/test/ndbapi/testReadPerf.cpp +++ b/ndb/test/ndbapi/testReadPerf.cpp @@ -242,14 +242,6 @@ void err(NdbError e){ ndbout << e << endl; } -static -void -do_work(){ - int sz = 10 * 1024; - int pos= rand() % (sizeof(g_buffer) - sz); - memset(g_buffer+pos, rand(), sz); -} - int run_read(){ int iter = g_paramters[P_LOOPS].value; @@ -374,7 +366,6 @@ run_read(){ assert(check == 0); if(g_paramters[P_OPER].value >= 4){ while((check = rs->nextResult(true)) == 0){ - do_work(); cnt++; } @@ -384,12 +375,6 @@ run_read(){ } assert(check == 1); rs->close(); - } else { - if(start_row != stop_row) - do_work(); - else - for(int j = 0; j