Skip to content

Commit

Permalink
Merge pull request #9740: jewel : rados: Add cleanup message with tim…
Browse files Browse the repository at this point in the history
…e to rados bench output

Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
Loic Dachary committed Jul 1, 2016
2 parents 4f36f5a + f8e4911 commit 138f21e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/common/obj_bencher.cc
Expand Up @@ -231,6 +231,7 @@ int ObjBencher::aio_bench(
int num_objects = 0;
int r = 0;
int prevPid = 0;
utime_t runtime;

// default metadata object is used if user does not specify one
const std::string run_name_meta = (run_name.empty() ? BENCH_LASTRUN_METADATA : run_name);
Expand Down Expand Up @@ -291,9 +292,15 @@ int ObjBencher::aio_bench(
goto out;
}

data.start_time = ceph_clock_now(cct);
out(cout) << "Cleaning up (deleting benchmark objects)" << std::endl;

r = clean_up(num_objects, prevPid, concurrentios);
if (r != 0) goto out;

runtime = ceph_clock_now(cct) - data.start_time;
out(cout) << "Clean up completed and total clean up time :" << runtime << std::endl;

// lastrun file
r = sync_remove(run_name_meta);
if (r != 0) goto out;
Expand Down

0 comments on commit 138f21e

Please sign in to comment.