From: Jianpeng Ma Date: Fri, 20 May 2016 13:24:31 +0000 (+0800) Subject: common/WorkQueue: Make decrease thread num to zero. X-Git-Tag: v11.0.0~301^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f75221c9a97afa7529d655894b013826a6153594;p=ceph.git common/WorkQueue: Make decrease thread num to zero. Signed-off-by: Jianpeng Ma --- diff --git a/src/common/WorkQueue.cc b/src/common/WorkQueue.cc index 85150e42471..16b34624b6c 100644 --- a/src/common/WorkQueue.cc +++ b/src/common/WorkQueue.cc @@ -78,7 +78,7 @@ void ThreadPool::handle_conf_change(const struct md_config_t *conf, assert(r >= 0); int v = atoi(buf); free(buf); - if (v > 0) { + if (v >= 0) { _lock.Lock(); _num_threads = v; start_threads();