there is no need to do so in `start()`.
Signed-off-by: Kefu Chai <kchai@redhat.com>
OSD::OSD(int id, uint32_t nonce)
: whoami{id},
- nonce{nonce}
+ nonce{nonce},
+ beacon_timer{[this] { send_beacon(); }},
+ heartbeat_timer{[this] { update_heartbeat_peers(); }}
{
osdmaps[0] = boost::make_local_shared<OSDMap>();
}
return heartbeat->start(public_msgr->get_myaddrs(),
cluster_msgr->get_myaddrs());
}).then([this] {
- beacon_timer.set_callback([this] { send_beacon(); });
- heartbeat_timer.set_callback([this] { update_heartbeat_peers(); });
return start_boot();
});
}
class OSD : public ceph::net::Dispatcher,
private OSDMapService {
seastar::gate gate;
- seastar::timer<seastar::lowres_clock> beacon_timer;
const int whoami;
const uint32_t nonce;
+ seastar::timer<seastar::lowres_clock> beacon_timer;
// talk with osd
ceph::net::Messenger* cluster_msgr = nullptr;
// talk with client/mon/mgr