mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
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:
commit
7df1906b6c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user