From: myoungwon oh Date: Fri, 28 Jun 2019 10:00:52 +0000 (+0900) Subject: src/osd/PrimaryLogPG.cc: fix checking range for chunked object X-Git-Tag: v15.1.0~2104^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6ad5d086d6296449774854f3017e6b556ce95645;p=ceph-ci.git src/osd/PrimaryLogPG.cc: fix checking range for chunked object Signed-off-by: Myoungwon Oh --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index ad6f9950b6d..eeb619345c0 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -8152,7 +8152,7 @@ void PrimaryLogPG::write_update_size_and_usage(object_stat_sum_t& delta_stats, o if (oi.has_manifest() && oi.manifest.is_chunked()) { for (auto &p : oi.manifest.chunk_map) { if ((p.first <= offset && p.first + p.second.length > offset) || - (p.first > offset && p.first <= offset + length)) { + (p.first > offset && p.first < offset + length)) { p.second.clear_flag(chunk_info_t::FLAG_MISSING); p.second.set_flag(chunk_info_t::FLAG_DIRTY); }