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
+2
View File
@@ -47,6 +47,8 @@ osd_t::osd_t(blockstore_config_t & config, blockstore_t *bs, ring_loop_t *ringlo
if (run_primary)
init_primary();
init_cluster();
consumer.loop = [this]() { loop(); };
ringloop->register_consumer(&consumer);
}