Skip to content

Commit

Permalink
test/osd/RadosModel: writesame fix return value assertion
Browse files Browse the repository at this point in the history
Signed-off-by: Matan Breizman <[email protected]>
  • Loading branch information
Matan-B committed Aug 31, 2022
1 parent 07bfcac commit baa9a24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/osd/RadosModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,8 @@ class WriteSameOp : public TestOp {

context->update_object_version(oid, version);
ceph_assert(rcompletion->is_complete());
ceph_assert(rcompletion->get_return_value() == 1);
int r = rcompletion->get_return_value();
assertf(r >= 0, "r = %d", r);
if (rcompletion->get_version64() != version) {
std::cerr << "Error: racing read on " << oid << " returned version "
<< rcompletion->get_version64() << " rather than version "
Expand Down

0 comments on commit baa9a24

Please sign in to comment.