From efe5378c392efa7221ca3f1659b2998a3e511f2a Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Sun, 9 Oct 2016 09:17:17 +0800 Subject: [PATCH] mgr/MgrStandby: use mgr_beacon_period to send beacon Fixes: http://tracker.ceph.com/issues/17455 Signed-off-by: xie xingguo --- src/mgr/MgrStandby.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mgr/MgrStandby.cc b/src/mgr/MgrStandby.cc index f8340e3296e..f555f791f10 100644 --- a/src/mgr/MgrStandby.cc +++ b/src/mgr/MgrStandby.cc @@ -112,8 +112,7 @@ void MgrStandby::send_beacon() available); monc->send_mon_message(m); - // TODO configure period - timer.add_event_after(5, new C_StdFunction( + timer.add_event_after(g_conf->mgr_beacon_period, new C_StdFunction( [this](){ send_beacon(); } -- 2.39.5