Skip to content

Commit

Permalink
os/bluestore: fix lack of blob unshare if 'root' onode is not present
Browse files Browse the repository at this point in the history
in cache.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
  • Loading branch information
ifed01 committed Nov 18, 2020
1 parent 2e9a804 commit 7801dc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/bluestore/BlueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13786,7 +13786,7 @@ void BlueStore::_wctx_finish(
auto& r = lo.r;
txc->statfs_delta.stored() -= lo.e.length;
if (!r.empty()) {
dout(20) << __func__ << " blob release " << r << dendl;
dout(20) << __func__ << " blob " << *b << " release " << r << dendl;
if (blob.is_shared()) {
PExtentVector final;
c->load_shared_blob(b->shared_blob);
Expand Down Expand Up @@ -14319,7 +14319,7 @@ int BlueStore::_do_remove(
<< maybe_unshared_blobs << dendl;
ghobject_t nogen = o->oid;
nogen.generation = ghobject_t::NO_GEN;
OnodeRef h = c->onode_map.lookup(nogen);
OnodeRef h = c->get_onode(nogen, false);

if (!h || !h->exists) {
return 0;
Expand Down

0 comments on commit 7801dc2

Please sign in to comment.