Fix RDMA-CM broken in 2.2.0

This commit is contained in:
Vitaliy Filippov
2025-07-29 00:14:05 +03:00
parent 78c95c94f6
commit 625552c441
5 changed files with 5 additions and 7 deletions
+1 -3
View File
@@ -1186,9 +1186,7 @@ void etcd_state_client_t::parse_state(const etcd_kv_t & kv)
osd_num_t peer_osd = std::stoull(key.substr(etcd_prefix.length()+11));
if (peer_osd > 0)
{
if (value.is_object() && value["state"] == "up" &&
value["addresses"].is_array() &&
value["port"].int64_value() > 0 && value["port"].int64_value() < 65536)
if (value.is_object() && value["state"] == "up")
{
this->peer_states[peer_osd] = value;
this->seen_peers.insert(peer_osd);