Fix PG_INCOMPLETE on node outage when allow_net_split is false

This commit is contained in:
Vitaliy Filippov
2025-11-07 21:56:56 +03:00
parent aa1e51de5f
commit 15eef27d44
4 changed files with 53 additions and 1 deletions
+5 -1
View File
@@ -410,7 +410,11 @@ void osd_t::report_statistics()
void osd_t::on_change_osd_state_hook(osd_num_t peer_osd)
{
if (msgr.wanted_peers.find(peer_osd) != msgr.wanted_peers.end())
if (st_cli.peer_states[peer_osd].is_null())
{
repeer_pgs(peer_osd);
}
else if (msgr.wanted_peers.find(peer_osd) != msgr.wanted_peers.end())
{
msgr.connect_peer(peer_osd, st_cli.peer_states[peer_osd]);
}