]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: Monitor: fix timecheck rounds period 3836/head
authorJoao Eduardo Luis <joao@redhat.com>
Fri, 30 Jan 2015 11:37:28 +0000 (11:37 +0000)
committerJoao Eduardo Luis <jecluis@gmail.com>
Sun, 1 Mar 2015 10:20:43 +0000 (10:20 +0000)
Fixes: #10546
Backports: dumpling?,firefly,giant

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
src/mon/Monitor.cc

index aafc56c29008e759baa5ad3580d8e81c28acc93f..5408754d5499a38dbee73d0810297154b9af885b 100644 (file)
@@ -3667,7 +3667,7 @@ void Monitor::timecheck_start_round()
     dout(10) << __func__ << " there's a timecheck going on" << dendl;
     utime_t curr_time = ceph_clock_now(g_ceph_context);
     double max = g_conf->mon_timecheck_interval*3;
-    if (curr_time - timecheck_round_start > max) {
+    if (curr_time - timecheck_round_start < max) {
       dout(10) << __func__ << " keep current round going" << dendl;
       goto out;
     } else {