Remove cluster_client_t::stop()

This commit is contained in:
Vitaliy Filippov
2021-04-03 14:35:42 +03:00
parent 883bf84a16
commit e47f6fba60
3 changed files with 6 additions and 10 deletions
+5 -8
View File
@@ -96,14 +96,6 @@ cluster_client_t::~cluster_client_t()
}
}
void cluster_client_t::stop()
{
while (msgr.clients.size() > 0)
{
msgr.stop_client(msgr.clients.begin()->first);
}
}
void cluster_client_t::continue_ops(bool up_retry)
{
for (auto op_it = cur_ops.begin(); op_it != cur_ops.end(); )
@@ -250,6 +242,11 @@ void cluster_client_t::on_change_osd_state_hook(uint64_t peer_osd)
}
}
bool cluster_client_t::is_ready()
{
return pgs_loaded;
}
void cluster_client_t::on_ready(std::function<void(void)> fn)
{
if (pgs_loaded)