Skip to content

Commit

Permalink
Merge pull request #13211 from liewegas/wip-clone-offsets
Browse files Browse the repository at this point in the history
ceph_test_objectstore: match clone_range src and dst offset

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
  • Loading branch information
liewegas committed Feb 2, 2017
2 parents 013b96e + b2e7f42 commit 7df1906
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/objectstore/store_test.cc
Expand Up @@ -3546,7 +3546,8 @@ class SyntheticWorkloadState {
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);
Expand Down

0 comments on commit 7df1906

Please sign in to comment.