]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async: add assert of ms_async_op_threads > 0 15629/head
authorlinbing <hawkerous@gmail.com>
Mon, 12 Jun 2017 11:38:37 +0000 (19:38 +0800)
committerlinbing <hawkerous@gmail.com>
Mon, 12 Jun 2017 11:38:37 +0000 (19:38 +0800)
Signed-off-by: linbing <linbing@t2cloud.net>
src/msg/async/Stack.cc

index fc55f7c313ab238ed53395ccb5e68c37b69cc4e6..807db1136e39594c9a0f80c8cb5b6093fffd165d 100644 (file)
@@ -101,6 +101,8 @@ Worker* NetworkStack::create_worker(CephContext *c, const string &type, unsigned
 
 NetworkStack::NetworkStack(CephContext *c, const string &t): type(t), started(false), cct(c)
 {
+  assert(cct->_conf->ms_async_op_threads > 0);
+
   const uint64_t InitEventNumber = 5000;
   num_workers = cct->_conf->ms_async_op_threads;
   if (num_workers >= EventCenter::MAX_EVENTCENTER) {