Skip to content

Commit

Permalink
common: make rados bench return correctly errno.
Browse files Browse the repository at this point in the history
Signed-off-by: Jianpeng Ma <[email protected]>
  • Loading branch information
majianpeng committed Apr 9, 2015
1 parent 4ed66a6 commit e3d62a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/obj_bencher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ int ObjBencher::write_bench(int secondsToRun, int maxObjectsToCreate,
lock.Unlock();
pthread_join(print_thread, NULL);
delete newContents;
return -5;
return r;
}

int ObjBencher::seq_read_bench(int seconds_to_run, int num_objects, int concurrentios, int pid) {
Expand Down Expand Up @@ -674,7 +674,7 @@ int ObjBencher::seq_read_bench(int seconds_to_run, int num_objects, int concurre
data.done = 1;
lock.Unlock();
pthread_join(print_thread, NULL);
return -5;
return r;
}

int ObjBencher::rand_read_bench(int seconds_to_run, int num_objects, int concurrentios, int pid)
Expand Down Expand Up @@ -865,7 +865,7 @@ int ObjBencher::rand_read_bench(int seconds_to_run, int num_objects, int concurr
data.done = 1;
lock.Unlock();
pthread_join(print_thread, NULL);
return -5;
return r;
}

int ObjBencher::clean_up(const char* prefix, int concurrentios, const char* run_name) {
Expand Down Expand Up @@ -1022,7 +1022,7 @@ int ObjBencher::clean_up(int num_objects, int prevPid, int concurrentios) {
lock.Lock();
data.done = 1;
lock.Unlock();
return -5;
return r;
}

/**
Expand Down

0 comments on commit e3d62a9

Please sign in to comment.