Skip to content

Commit

Permalink
src/osd/PrimaryLogPG.cc: fix checking range for chunked object
Browse files Browse the repository at this point in the history
Signed-off-by: Myoungwon Oh <[email protected]>
  • Loading branch information
myoungwon committed Jul 12, 2019
1 parent 86ffc0b commit 6ad5d08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osd/PrimaryLogPG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6ad5d08

Please sign in to comment.