]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/MgrStandby: use mgr_beacon_period to send beacon
authorxie xingguo <xie.xingguo@zte.com.cn>
Sun, 9 Oct 2016 01:17:17 +0000 (09:17 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 17 Oct 2016 12:57:06 +0000 (20:57 +0800)
Fixes: http://tracker.ceph.com/issues/17455
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mgr/MgrStandby.cc

index f8340e3296ec906ba7b7b6b2ec1e5174d13c9104..f555f791f10290aa755b966b37b19b42b6a5cae3 100644 (file)
@@ -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();
         }