os/bluestore: avoid initializing finishers in constructor

This is a follow up change of https://github.com/ceph/ceph/pull/15666,
which I forget to update.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
xie xingguo 2017-06-22 13:26:27 +08:00
parent 041296bdb1
commit aa850b9944

View File

@ -3437,17 +3437,6 @@ BlueStore::BlueStore(CephContext *cct,
_init_logger();
cct->_conf->add_observer(this);
set_cache_shards(1);
if (cct->_conf->bluestore_shard_finishers) {
m_finisher_num = cct->_conf->osd_op_num_shards;
}
for (int i = 0; i < m_finisher_num; ++i) {
ostringstream oss;
oss << "finisher-" << i;
Finisher *f = new Finisher(cct, oss.str(), "finisher");
finishers.push_back(f);
}
}
BlueStore::~BlueStore()