From: Sage Weil Date: Wed, 1 Feb 2017 01:51:57 +0000 (-0500) Subject: ceph_test_objectstore: match clone_range src and dst offset X-Git-Tag: v12.0.0~29^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b2e7f42b17013fbf180f65314c927ea0382bfa94;p=ceph.git ceph_test_objectstore: match clone_range src and dst offset This is what the OSD does, and BlueStore doesn't necessarily handle all combinations of different offsets. Signed-off-by: Sage Weil --- diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index a51589b5922c..6e29e69668ec 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -3465,7 +3465,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);