os/bluestore: fix compaction left-side length

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-09-30 14:49:35 -04:00
parent 1164a30235
commit ea0aee6073

View File

@ -7705,6 +7705,7 @@ int BlueStore::_do_write(
head_bl.claim_append(bl);
bl.swap(head_bl);
offset = gc_start_offset;
length = end - offset;
} else {
o->extent_map.fault_range(db, gc_start_offset, read_len);
_do_write_data(txc, c, o, gc_start_offset, read_len, head_bl, &wctx);