aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/archive/yarchive.cpp
diff options
context:
space:
mode:
authoreeight <eeight@yandex-team.ru>2022-02-10 16:46:19 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:19 +0300
commitbd085aee9b4f7a0bee302ce687964ffb7098f986 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/archive/yarchive.cpp
parent475c0a46f28166e83fd263badc7546377cddcabe (diff)
downloadydb-bd085aee9b4f7a0bee302ce687964ffb7098f986.tar.gz
Restoring authorship annotation for <eeight@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/archive/yarchive.cpp')
-rw-r--r--library/cpp/archive/yarchive.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/archive/yarchive.cpp b/library/cpp/archive/yarchive.cpp
index 623a795bbc..1becc3e5da 100644
--- a/library/cpp/archive/yarchive.cpp
+++ b/library/cpp/archive/yarchive.cpp
@@ -145,7 +145,7 @@ public:
}
inline void Add(const TString& key, IInputStream* src) {
- Y_ENSURE(!Dict_.contains(key), "key " << key.data() << " already stored");
+ Y_ENSURE(!Dict_.contains(key), "key " << key.data() << " already stored");
TCountingOutput out(Out_);
if (UseCompression) {
@@ -173,8 +173,8 @@ public:
}
inline void AddSynonym(const TString& existingKey, const TString& newKey) {
- Y_ENSURE(Dict_.contains(existingKey), "key " << existingKey.data() << " not stored yet");
- Y_ENSURE(!Dict_.contains(newKey), "key " << newKey.data() << " already stored");
+ Y_ENSURE(Dict_.contains(existingKey), "key " << existingKey.data() << " not stored yet");
+ Y_ENSURE(!Dict_.contains(newKey), "key " << newKey.data() << " already stored");
TArchiveRecordDescriptorRef existingDescr = Dict_[existingKey];
TArchiveRecordDescriptorRef descr(new TArchiveRecordDescriptor(existingDescr->Offset(), existingDescr->Length(), newKey));
@@ -312,7 +312,7 @@ public:
}
inline bool Has(const TStringBuf key) const {
- return Dict_.contains(key);
+ return Dict_.contains(key);
}
inline TAutoPtr<IInputStream> ObjectByKey(const TStringBuf key) const {