aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/dns/cache.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/dns/cache.cpp
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/dns/cache.cpp')
-rw-r--r--library/cpp/dns/cache.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/dns/cache.cpp b/library/cpp/dns/cache.cpp
index 05c14e82fc..a1031fed02 100644
--- a/library/cpp/dns/cache.cpp
+++ b/library/cpp/dns/cache.cpp
@@ -80,7 +80,7 @@ namespace {
}
}
- void AddAlias(const TString& host, const TString& alias) noexcept {
+ void AddAlias(const TString& host, const TString& alias) noexcept {
TWriteGuard guard(LA_);
A_[host] = alias;
@@ -92,8 +92,8 @@ namespace {
private:
inline TResolvedHostPtr ResolveA(const TResolveTask& rt) {
- TString originalHost(rt.Info.Host);
- TString host(originalHost);
+ TString originalHost(rt.Info.Host);
+ TString host(originalHost);
//3. replace host to alias, if exist
if (A_.size()) {
@@ -129,10 +129,10 @@ namespace {
return new TResolvedHost(originalHost, *na);
}
- typedef THashMap<TResolveInfo, TResolvedHostPtr, THashResolveInfo, TCompareResolveInfo> TCache;
+ typedef THashMap<TResolveInfo, TResolvedHostPtr, THashResolveInfo, TCompareResolveInfo> TCache;
TCache C_;
TRWMutex L_;
- typedef THashMap<TString, TString> TAliases;
+ typedef THashMap<TString, TString> TAliases;
TAliases A_;
TRWMutex LA_;
};
@@ -162,7 +162,7 @@ namespace {
}
private:
- typedef THashMap<TResolveInfo, const TResolvedHost*, THashResolveInfo, TCompareResolveInfo> TCache;
+ typedef THashMap<TResolveInfo, const TResolvedHost*, THashResolveInfo, TCompareResolveInfo> TCache;
TCache C_;
IDns* S_;
};
@@ -192,7 +192,7 @@ namespace NDns {
return ThrDns()->Resolve(rt);
}
- void AddHostAlias(const TString& host, const TString& alias) {
+ void AddHostAlias(const TString& host, const TString& alias) {
TGlobalCachedDns::Instance()->AddAlias(host, alias);
}
}