aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhiddenpath <hiddenpath@yandex-team.com>2025-02-25 17:33:17 +0300
committerhiddenpath <hiddenpath@yandex-team.com>2025-02-25 17:49:12 +0300
commit08e6653f6fdaab5ef14fbfa37963277dcbfc9abf (patch)
treeac4bb122b17d1cf82501f476f0bc6f7f48207809
parentcad6bfa9f29ef01967ff7fa877079fc6bfd91673 (diff)
downloadydb-08e6653f6fdaab5ef14fbfa37963277dcbfc9abf.tar.gz
Overwrite expired entries in TAddressCache
This fixes https://github.com/ytsaurus/ytsaurus/issues/1091 commit_hash:7c40eb4f69a3f8feb37e566cbec43a47f6141994
-rw-r--r--yt/cpp/mapreduce/http/http.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt/cpp/mapreduce/http/http.cpp b/yt/cpp/mapreduce/http/http.cpp
index ae84926a2f..4c36091926 100644
--- a/yt/cpp/mapreduce/http/http.cpp
+++ b/yt/cpp/mapreduce/http/http.cpp
@@ -499,7 +499,7 @@ void TAddressCache::AddAddress(TString hostName, TAddressPtr address)
{
TWriteGuard guard(Lock_);
- Cache_.emplace(std::move(hostName), std::move(entry));
+ Cache_[std::move(hostName)] = std::move(entry);
}
}