diff options
author | Kefu Chai <kchai@redhat.com> | 2017-09-20 09:13:35 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2017-09-21 19:12:13 +0200 |
commit | 344f112bb36d1f11212b08e9061fdac6b139bb76 (patch) | |
tree | d1d2f7ed1038d40b0271c5042f970f3019e69fa7 /src/common/WorkQueue.h | |
parent | Merge PR #17849 into master (diff) | |
download | ceph-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.h | 4 |
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, |