Skip to content

Commit

Permalink
Merge pull request #11312 from liewegas/wip-bluestore-assign-blob
Browse files Browse the repository at this point in the history
os/bluestore: fix crash in decode_some()
  • Loading branch information
liewegas committed Oct 4, 2016
2 parents b974dac + 6b21e69 commit 16e6e34
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/os/bluestore/BlueStore.cc
Expand Up @@ -1726,10 +1726,11 @@ void BlueStore::ExtentMap::decode_some(bufferlist& bl)
le->assign_blob(blobs[blobid - 1]);
assert(le->blob);
} else {
le->assign_blob(new Blob());
le->blob->decode(p);
blobs[n] = le->blob;
onode->c->open_shared_blob(le->blob);
Blob *b = new Blob();
b->decode(p);
blobs[n] = b;
onode->c->open_shared_blob(b);
le->assign_blob(b);
}
// we build ref_map dynamically for non-spanning blobs
le->blob->ref_map.get(le->blob_offset, le->length);
Expand Down

0 comments on commit 16e6e34

Please sign in to comment.