]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: only dump non-empty "task status"
authorKefu Chai <kchai@redhat.com>
Thu, 16 Jul 2020 11:39:13 +0000 (19:39 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 16 Jul 2020 11:41:59 +0000 (19:41 +0800)
commit7305acda01b1f4b66327cd2ce5e6b12acfb65de6
tree5c635cfcbff08aa21928513587324d62142d1138
parent310e33cf9a6ce7987d82566dba9ebc6b97c18a19
mon: only dump non-empty "task status"

* mgr/ServiceMap: add ServiceMap::Service::has_running_tasks() to tell
  if a service has any running tasks
* mon/Monitor: do not print an empty "task status" section when printing
  cluster status. it's just confusing.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mgr/ServiceMap.cc
src/mgr/ServiceMap.h
src/mon/Monitor.cc