]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
monclient: use "is_connected" check when scheduling tick 36634/head
authorMykola Golub <mgolub@suse.com>
Thu, 30 Jul 2020 05:59:57 +0000 (06:59 +0100)
committerNathan Cutler <ncutler@suse.com>
Fri, 14 Aug 2020 09:58:15 +0000 (11:58 +0200)
commit85248f02e1813d7a8afa0c4f4171fce6e335c980
tree7595a6a59f587fba5ddf0801cf9183bcadc2fe96
parent6706e0725d409080dccb9cbf02140fb7530be72e
monclient: use "is_connected" check when scheduling tick

When schedule_tick is called for the first time (in init) we are
still not in hunting mode so mon_client_ping_interval and
mon_client_log_interval were used to schedule the tick.

Fixes: https://tracker.ceph.com/issues/46445
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit d86b389a51e870c1aa5182a93095f5efb12e41e4)

Conflicts:
src/mon/MonClient.cc
src/mon/MonClient.cc