From b4eb5efaf87d8213f89dee0d9bb156171fcd18e1 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Fri, 3 Jun 2011 11:53:10 -0700 Subject: [PATCH] rados_bencher: re-add written objects constraint to read benchmark. Somehow, in the last major change, the constraints that kept the bencher from trying to read non-existent objects got removed. Put a check back in the main bench loop to fix that. Signed-off-by: Greg Farnum --- src/osdc/rados_bencher.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osdc/rados_bencher.h b/src/osdc/rados_bencher.h index 1faa0121f7074..84635e4029591 100644 --- a/src/osdc/rados_bencher.h +++ b/src/osdc/rados_bencher.h @@ -376,7 +376,8 @@ int seq_read_bench(librados::Rados& rados, librados::IoCtx& io_ctx, int seconds_ char* newName; bufferlist *cur_contents; - while (seconds_to_run && (g_clock.now() < finish_time)) { + while (seconds_to_run && (g_clock.now() < finish_time) && + write_data->finished > data->started) { dataLock.Lock(); while (1) { for (slot = 0; slot < concurrentios; ++slot) { -- 2.39.5