From: Samuel Just Date: Fri, 28 Aug 2015 20:13:08 +0000 (-0700) Subject: src/test/osd/Object: allow a hole at the end of the object X-Git-Tag: v9.1.0~107^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f162e33f66c2bfe87f0105e66f7ab8dd5635e3f8;p=ceph.git src/test/osd/Object: allow a hole at the end of the object This way, we test the case with holes at the end of the file more often. Signed-off-by: Samuel Just --- diff --git a/src/test/osd/Object.cc b/src/test/osd/Object.cc index f2bc9db401f5..4f791cd5e53a 100644 --- a/src/test/osd/Object.cc +++ b/src/test/osd/Object.cc @@ -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) {