From: xie xingguo Date: Sun, 9 Oct 2016 01:17:17 +0000 (+0800) Subject: mgr/MgrStandby: use mgr_beacon_period to send beacon X-Git-Tag: v11.1.0~588^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=efe5378c392efa7221ca3f1659b2998a3e511f2a;p=ceph.git mgr/MgrStandby: use mgr_beacon_period to send beacon Fixes: http://tracker.ceph.com/issues/17455 Signed-off-by: xie xingguo --- 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(); }