]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_objectstore: match clone_range src and dst offset 13211/head
authorSage Weil <sage@redhat.com>
Wed, 1 Feb 2017 01:51:57 +0000 (20:51 -0500)
committerSage Weil <sage@redhat.com>
Wed, 1 Feb 2017 01:51:57 +0000 (20:51 -0500)
This is what the OSD does, and BlueStore doesn't necessarily handle
all combinations of different offsets.

Signed-off-by: Sage Weil <sage@redhat.com>
src/test/objectstore/store_test.cc

index a51589b5922cbb7340f9131230d9a903b73db4fd..6e29e69668ece14caee4a55332bf6dd3bc39e210 100644 (file)
@@ -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);