From b2e7f42b17013fbf180f65314c927ea0382bfa94 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 31 Jan 2017 20:51:57 -0500 Subject: [PATCH] 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 --- src/test/objectstore/store_test.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.47.3