Retry consul connection attempts and then die

This commit is contained in:
Vitaliy Filippov
2020-04-15 15:33:18 +03:00
parent d78ce509c6
commit 089b4eb208
4 changed files with 33 additions and 1 deletions
+7
View File
@@ -42,6 +42,8 @@ osd_t::osd_t(blockstore_config_t & config, blockstore_t *bs, ring_loop_t *ringlo
print_stats();
});
this->tfd = new timerfd_manager_t(ringloop);
if (run_primary)
init_primary();
@@ -51,6 +53,11 @@ osd_t::osd_t(blockstore_config_t & config, blockstore_t *bs, ring_loop_t *ringlo
osd_t::~osd_t()
{
if (tfd)
{
delete tfd;
tfd = NULL;
}
if (stats_tfd)
{
delete stats_tfd;