Commit c20c8baf authored by joreland@mysql.com's avatar joreland@mysql.com

removed faked do_work

parent b484ed61
...@@ -242,14 +242,6 @@ void err(NdbError e){ ...@@ -242,14 +242,6 @@ void err(NdbError e){
ndbout << e << endl; 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 int
run_read(){ run_read(){
int iter = g_paramters[P_LOOPS].value; int iter = g_paramters[P_LOOPS].value;
...@@ -374,7 +366,6 @@ run_read(){ ...@@ -374,7 +366,6 @@ run_read(){
assert(check == 0); assert(check == 0);
if(g_paramters[P_OPER].value >= 4){ if(g_paramters[P_OPER].value >= 4){
while((check = rs->nextResult(true)) == 0){ while((check = rs->nextResult(true)) == 0){
do_work();
cnt++; cnt++;
} }
...@@ -384,12 +375,6 @@ run_read(){ ...@@ -384,12 +375,6 @@ run_read(){
} }
assert(check == 1); assert(check == 1);
rs->close(); rs->close();
} else {
if(start_row != stop_row)
do_work();
else
for(int j = 0; j<range; j++)
do_work();
} }
} }
assert(g_paramters[P_OPER].value < 4 || (cnt == range)); assert(g_paramters[P_OPER].value < 4 || (cnt == range));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment