]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/MgrClient: use mono_clock for clock_t used by Timer 39273/head
authorKefu Chai <kchai@redhat.com>
Thu, 4 Feb 2021 05:05:44 +0000 (13:05 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 4 Feb 2021 11:26:52 +0000 (19:26 +0800)
so we don't suffer from "missing event" when adjust time the system
clock

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mgr/MgrClient.h

index 6bd2b26e11a37c4cc272585807fe9f7b34e0c62c..f09ba91b712c2ef4032acc81e581445280ee708d 100644 (file)
@@ -76,7 +76,7 @@ protected:
 
   CommandTable<MgrCommand> command_table;
 
-  using clock_t = ceph::real_clock;
+  using clock_t = ceph::mono_clock;
   clock_t::time_point last_connect_attempt;
 
   uint64_t last_config_bl_version = 0;