diff --git a/cloud/blockstore/libs/storage/disk_registry/disk_registry_state.cpp b/cloud/blockstore/libs/storage/disk_registry/disk_registry_state.cpp index 3611a7fc997..386db8383a6 100644 --- a/cloud/blockstore/libs/storage/disk_registry/disk_registry_state.cpp +++ b/cloud/blockstore/libs/storage/disk_registry/disk_registry_state.cpp @@ -3650,18 +3650,18 @@ TVector TDiskRegistryState::TryUpdateDevices( TVector ret; ret.reserve(uuids.size()); - TSet agentsMap; + TSet agentsSet; for (const auto& uuid: uuids) { auto [agent, device] = FindDeviceLocation(uuid); if (!agent || !device) { continue; } ret.push_back(uuid); - agentsMap.emplace(agent->agentid()); + agentsSet.emplace(agent->GetAgentId()); AdjustDeviceIfNeeded(*device, now); } - for (const auto& agentId: agentsMap) { + for (const auto& agentId: agentsSet) { auto* agent = AgentList.FindAgent(agentId); if (!agent) { continue;