If a blob is marked as compressed and still mutable, something
is wrong.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
if (ep != o->extent_map.extent_map.begin()) {
--ep;
b = ep->blob;
- if (ep->logical_offset - ep->blob_offset + b->get_blob().get_ondisk_length() <= offset) {
+ if (ep->logical_offset - ep->blob_offset +
+ b->get_blob().get_ondisk_length() <= offset) {
++ep;
}
}
break;
}
b = ep->blob;
- if (!b->get_blob().is_mutable() || b->get_blob().is_compressed()) {
+ if (!b->get_blob().is_mutable()) {
dout(20) << __func__ << " ignoring immutable " << *b << dendl;
++ep;
continue;