Skip to content

Commit

Permalink
Merge pull request #11030 from amoxic/amoxic-wip-fix-do-write-small
Browse files Browse the repository at this point in the history
os/bluestore: fix offset bug in _do_write_small.

Reviewed-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Sep 13, 2016
2 parents 3b2c094 + 038b093 commit fd6b1cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/bluestore/BlueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6938,7 +6938,7 @@ void BlueStore::_do_write_small(
if (ep != o->extent_map.extent_map.begin()) {
--ep;
b = ep->blob;
if (ep->logical_offset + b->get_blob().get_ondisk_length() <= offset) {
if (ep->logical_offset - ep->blob_offset + b->get_blob().get_ondisk_length() <= offset) {
++ep;
}
}
Expand Down

0 comments on commit fd6b1cc

Please sign in to comment.