Reconnect to peers after connecting drops

This commit is contained in:
Vitaliy Filippov
2020-04-19 01:01:26 +03:00
parent dc57c5c362
commit 663153713b
3 changed files with 14 additions and 2 deletions
+5
View File
@@ -327,6 +327,11 @@ void osd_t::start_pg_peering(pg_num_t pg_num)
{
cur_peers.insert(peer_osd);
}
else if (wanted_peers.find(peer_osd) == wanted_peers.end())
{
wanted_peers[peer_osd] = { 0 };
peering_state |= OSD_CONNECTING_PEERS;
}
}
if (pg.peering_state)
{