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 <gregory.farnum@dreamhost.com>
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) {