]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/HeartbeatMap: no health check if heartbeat_file is empty 25888/head
authorZhi Zhang <willzzhang@tencent.com>
Fri, 11 Jan 2019 04:58:34 +0000 (12:58 +0800)
committerZhi Zhang <willzzhang@tencent.com>
Fri, 11 Jan 2019 04:58:34 +0000 (12:58 +0800)
commit99e63f761a50158ba1913d8f814010895db826a7
tree1495c1684fd4f3d9731e6d6c7743cc1925efa277
parenta05f9ebaa6cba0aafde5a0fab46f6b7ccbe174b2
common/HeartbeatMap: no health check if heartbeat_file is empty

CephContext service thread will also do health check. But if
heartbeat_file is empty, this health check is useless. So try to check
heartbeat_file first and then do health check.

Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
src/common/HeartbeatMap.cc