Skip to content

Commit

Permalink
os/bluestore: clean up finishers properly
Browse files Browse the repository at this point in the history
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
  • Loading branch information
xiexingguo committed Sep 22, 2016
1 parent 4213b43 commit fcaeb67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/os/bluestore/BlueStore.cc
Expand Up @@ -2110,7 +2110,7 @@ BlueStore::OnodeRef BlueStore::Collection::get_onode(
on = new Onode(&onode_map, this, oid, key);
} else {
// loaded
assert(r >=0 );
assert(r >= 0);
on = new Onode(&onode_map, this, oid, key);
on->exists = true;
bufferlist::iterator p = v.begin();
Expand Down Expand Up @@ -2202,8 +2202,8 @@ BlueStore::~BlueStore()
{
for (auto f : finishers) {
delete f;
f = NULL;
}
finishers.clear();

g_ceph_context->_conf->remove_observer(this);
_shutdown_logger();
Expand Down

0 comments on commit fcaeb67

Please sign in to comment.