]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: Monitor: fix timecheck rounds period 4042/head
authorJoao Eduardo Luis <joao@redhat.com>
Fri, 30 Jan 2015 11:37:28 +0000 (11:37 +0000)
committerLoic Dachary <ldachary@redhat.com>
Tue, 17 Mar 2015 16:34:27 +0000 (17:34 +0100)
Fixes: #10546
Backports: dumpling?,firefly,giant

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
(cherry picked from commit 2e749599ac6e1060cf553b521761a93fafbf65bb)

src/mon/Monitor.cc

index f7e23a8ca7838bcc1c839561b1a0f6df59f95d5a..9b7cbaea392342b5f5bec9ccaf95794c7a819673 100644 (file)
@@ -3463,7 +3463,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 {