diff --git a/src/test/osd/RadosModel.h b/src/test/osd/RadosModel.h index 7f4de6162fee6..15b7ea8b53d62 100644 --- a/src/test/osd/RadosModel.h +++ b/src/test/osd/RadosModel.h @@ -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 "