summaryrefslogtreecommitdiffstats
path: root/src/common/WorkQueue.h
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2017-09-20 09:13:35 +0200
committerKefu Chai <kchai@redhat.com>2017-09-21 19:12:13 +0200
commit344f112bb36d1f11212b08e9061fdac6b139bb76 (patch)
treed1d2f7ed1038d40b0271c5042f970f3019e69fa7 /src/common/WorkQueue.h
parentMerge PR #17849 into master (diff)
downloadceph-344f112bb36d1f11212b08e9061fdac6b139bb76.tar.xz
ceph-344f112bb36d1f11212b08e9061fdac6b139bb76.zip
common: use mono clock for HeartbeatMap
to avoid problems when admin sets system clock. see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53901 for the reason why we cannot use atomic<time_point>. Signed-off-by: Kefu Chai <kchai@redhat.com> Signed-off-by: Xinze Chi <xinze@xsky.com>
Diffstat (limited to 'src/common/WorkQueue.h')
-rw-r--r--src/common/WorkQueue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/WorkQueue.h b/src/common/WorkQueue.h
index d3eff47bdf8..fcdd43b35d7 100644
--- a/src/common/WorkQueue.h
+++ b/src/common/WorkQueue.h
@@ -42,8 +42,8 @@ public:
friend class ThreadPool;
CephContext *cct;
heartbeat_handle_d *hb;
- time_t grace;
- time_t suicide_grace;
+ ceph::coarse_mono_clock::rep grace;
+ ceph::coarse_mono_clock::rep suicide_grace;
public:
TPHandle(
CephContext *cct,