Merge pull request #13211 from liewegas/wip-clone-offsets

ceph_test_objectstore: match clone_range src and dst offset

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
This commit is contained in:
Sage Weil 2017-02-02 09:08:05 -06:00 committed by GitHub
commit 7df1906b6c

View File

@ -3546,7 +3546,8 @@ public:
boost::uniform_int<> u1(0, max_object_len - max_write_len);
boost::uniform_int<> u2(0, max_write_len);
uint64_t srcoff = u1(*rng);
uint64_t dstoff = u1(*rng);
// make src and dst offsets match, since that's what the osd does
uint64_t dstoff = srcoff; //u1(*rng);
uint64_t len = u2(*rng);
if (write_alignment) {
srcoff = ROUND_UP_TO(srcoff, write_alignment);