aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/resource/registry.cpp
diff options
context:
space:
mode:
authorilnurkh <ilnurkh@yandex-team.com>2023-10-09 23:39:40 +0300
committerilnurkh <ilnurkh@yandex-team.com>2023-10-09 23:57:14 +0300
commite601ca03f859335d57ecff2e5aa6af234b6052ed (patch)
treede519a847e58a1b3993fcbfe05ff44cc946a3e24 /library/cpp/resource/registry.cpp
parentbbf2b6878af3854815a2c0ecb07a687071787639 (diff)
downloadydb-e601ca03f859335d57ecff2e5aa6af234b6052ed.tar.gz
Y_VERIFY->Y_ABORT_UNLESS at ^l
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/resource/registry.cpp')
-rw-r--r--library/cpp/resource/registry.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/resource/registry.cpp b/library/cpp/resource/registry.cpp
index 6f5ff85c63..c5d6543c65 100644
--- a/library/cpp/resource/registry.cpp
+++ b/library/cpp/resource/registry.cpp
@@ -28,14 +28,14 @@ namespace {
size_t vsize = GetCodec()->DecompressedLength(value);
size_t dsize = GetCodec()->DecompressedLength(data);
if (vsize + dsize < 1000) {
- Y_VERIFY(false, "Redefinition of key %s:\n"
+ Y_ABORT_UNLESS(false, "Redefinition of key %s:\n"
" old value: %s,\n"
" new value: %s.",
TString{key}.Quote().c_str(),
Decompress(value).Quote().c_str(),
Decompress(data).Quote().c_str());
} else {
- Y_VERIFY(false, "Redefinition of key %s,"
+ Y_ABORT_UNLESS(false, "Redefinition of key %s,"
" old size: %zu,"
" new size: %zu.",
TString{key}.Quote().c_str(), vsize, dsize);
@@ -46,7 +46,7 @@ namespace {
(*this)[key] = &D_.back();
}
- Y_VERIFY(size() == Count(), "size mismatch");
+ Y_ABORT_UNLESS(size() == Count(), "size mismatch");
}
bool Has(const TStringBuf key) const override {