Do not accidentally clear incorrect osd_peer_fds entries

This commit is contained in:
Vitaliy Filippov
2025-06-05 02:22:13 +03:00
parent 8d2a1f0297
commit a3c1996101
2 changed files with 7 additions and 2 deletions
+1
View File
@@ -121,6 +121,7 @@ void pretend_connected(cluster_client_t *cli, osd_num_t osd_num)
cli->msgr.osd_peer_fds[osd_num] = peer_fd;
cli->msgr.clients[peer_fd] = new osd_client_t();
cli->msgr.clients[peer_fd]->osd_num = osd_num;
cli->msgr.clients[peer_fd]->peer_fd = peer_fd;
cli->msgr.clients[peer_fd]->peer_state = PEER_CONNECTED;
cli->msgr.wanted_peers.erase(osd_num);
cli->msgr.repeer_pgs(osd_num);