Fix reporting to Consul, report even if we are purely secondary

This commit is contained in:
Vitaliy Filippov
2020-04-17 01:59:06 +03:00
parent 309486d746
commit 2a8e40835e
6 changed files with 39 additions and 16 deletions
-4
View File
@@ -38,10 +38,6 @@ void osd_t::init_primary()
{
peering_state = OSD_LOADING_PGS;
load_pgs();
this->consul_tfd = new timerfd_interval(ringloop, consul_report_interval, [this]()
{
report_status();
});
}
if (autosync_interval > 0)
{