]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: avoid initializing finishers in constructor 15826/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 22 Jun 2017 05:26:27 +0000 (13:26 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 22 Jun 2017 06:37:31 +0000 (14:37 +0800)
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>
src/os/bluestore/BlueStore.cc

index b136058441793a7f8f1f83a8ef13e967b30ac2a6..eac073aecbb67adaa33bac91bfefd7efec38afc8 100644 (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()