]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src/test/osd/Object: allow a hole at the end of the object 5706/head 6013/head
authorSamuel Just <sjust@redhat.com>
Fri, 28 Aug 2015 20:13:08 +0000 (13:13 -0700)
committerSamuel Just <sjust@redhat.com>
Tue, 15 Sep 2015 18:07:36 +0000 (11:07 -0700)
This way, we test the case with holes at the end of the file more
often.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/test/osd/Object.cc

index f2bc9db401f5ed8531f9c43ead637c22f6dcf2c2..4f791cd5e53a229979afb4129c7f6c2a0bc4ad99 100644 (file)
@@ -80,11 +80,6 @@ void VarLenGenerator::get_ranges_map(
     }
     pos += segment_length;
   }
-  // make sure we write up to the limit
-  if (limit > 0 && (
-       out.empty() ||
-       (out.rbegin()->first + out.rbegin()->second < limit)))
-    out[limit-1] = 1;
 }
 
 ObjectDesc::iterator &ObjectDesc::iterator::advance(bool init) {