Otherwise when umount finish reap and wait for pending io done, the last
pending io may aim to remove collection and make removed_collection not
empty. So the leaked collection ref will result in BlueStore deconstruction
segment failt
Signed-off-by: Haomai Wang <haomai@xsky.com>
dout(1) << __func__ << dendl;
_sync();
- _reap_collections();
- coll_map.clear();
mempool_thread.shutdown();
dout(20) << __func__ << " stopping finisher" << dendl;
f->stop();
}
+ _reap_collections();
+ coll_map.clear();
dout(20) << __func__ << " closing" << dendl;
mounted = false;