]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/WorkQueue: Make decrease thread num to zero.
authorJianpeng Ma <jianpeng.ma@intel.com>
Fri, 20 May 2016 13:24:31 +0000 (21:24 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Fri, 3 Jun 2016 15:56:06 +0000 (23:56 +0800)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/common/WorkQueue.cc

index 85150e42471a653131b3460680806b78e8801e22..16b34624b6c9fa17891572254616f8e48912bcbe 100644 (file)
@@ -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();