From: Sage Weil Date: Thu, 2 Feb 2017 15:11:11 +0000 (-0500) Subject: ceph_test_objectstore: match clone_range src and dst offset X-Git-Tag: v12.0.0~28 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d099edcb829ab1ee5742a50d4a27a126e55905ae;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 931382e5dcb4..940f5fceb0fe 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -2891,11 +2891,11 @@ TEST_P(StoreTest, SimpleCloneRangeTest) { hoid2.hobj.pool = -1; { ObjectStore::Transaction t; - t.clone_range(cid, hoid, hoid2, 10, 5, 0); + t.clone_range(cid, hoid, hoid2, 10, 5, 10); cerr << "Clone range object" << std::endl; r = apply_transaction(store, &osr, std::move(t)); ASSERT_EQ(r, 0); - r = store->read(cid, hoid2, 0, 5, newdata); + r = store->read(cid, hoid2, 10, 5, newdata); ASSERT_EQ(r, 5); ASSERT_TRUE(bl_eq(small, newdata)); }