]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
src/osd/PrimaryLogPG.cc: fix checking range for chunked object
authormyoungwon oh <omwmw@sk.com>
Fri, 28 Jun 2019 10:00:52 +0000 (19:00 +0900)
committermyoungwon oh <omwmw@sk.com>
Fri, 12 Jul 2019 13:22:51 +0000 (22:22 +0900)
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
src/osd/PrimaryLogPG.cc

index ad6f9950b6d7c3fcb03bc84a86ee511236ff7c73..eeb619345c0f15dd5c98c6c6067676ec98cf5720 100644 (file)
@@ -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);
       }