Skip to content

Commit

Permalink
Merge pull request #7817 from asheplyakov/hammer-bug-14873
Browse files Browse the repository at this point in the history
hammer: tools: fix race condition in seq/rand bench (part 2)

Reviewed-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
Loic Dachary committed Mar 11, 2016
2 parents 48dfac6 + 6a6754f commit de43aba
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/common/obj_bencher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -624,14 +624,7 @@ int ObjBencher::seq_read_bench(int seconds_to_run, int num_objects, int concurre
lock.Lock();
++data.started;
++data.in_flight;
lock.Unlock();
if (memcmp(data.object_contents, cur_contents->c_str(), data.object_size) != 0) {
cerr << name[slot] << " is not correct!" << std::endl;
++errors;
} else {
lock.Unlock();
}

lock.Unlock();
name[slot] = newName;
}

Expand Down

0 comments on commit de43aba

Please sign in to comment.