From f162e33f66c2bfe87f0105e66f7ab8dd5635e3f8 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Fri, 28 Aug 2015 13:13:08 -0700 Subject: [PATCH] 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 --- src/test/osd/Object.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/test/osd/Object.cc b/src/test/osd/Object.cc index f2bc9db401f5e..4f791cd5e53a2 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) { -- 2.39.5