diff options
author | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 23:39:40 +0300 |
---|---|---|
committer | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 23:57:14 +0300 |
commit | e601ca03f859335d57ecff2e5aa6af234b6052ed (patch) | |
tree | de519a847e58a1b3993fcbfe05ff44cc946a3e24 /library/cpp/actors/util/local_process_key.h | |
parent | bbf2b6878af3854815a2c0ecb07a687071787639 (diff) | |
download | ydb-e601ca03f859335d57ecff2e5aa6af234b6052ed.tar.gz |
Y_VERIFY->Y_ABORT_UNLESS at ^l
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/actors/util/local_process_key.h')
-rw-r--r-- | library/cpp/actors/util/local_process_key.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/actors/util/local_process_key.h b/library/cpp/actors/util/local_process_key.h index 077de8cddc..bff8bef81b 100644 --- a/library/cpp/actors/util/local_process_key.h +++ b/library/cpp/actors/util/local_process_key.h @@ -40,7 +40,7 @@ public: } TStringBuf GetNameByIndex(size_t index) const { - Y_VERIFY(index < Names.size()); + Y_ABORT_UNLESS(index < Names.size()); return Names[index]; } @@ -64,7 +64,7 @@ public: const ui32 index = TLocalProcessKeyStateIndexConstructor<T>::BuildCurrentIndex(name, Names.size()); auto x = Map.emplace(name, index); if (x.second) { - Y_VERIFY(index < Names.size(), "a lot of actors or tags for memory monitoring"); + Y_ABORT_UNLESS(index < Names.size(), "a lot of actors or tags for memory monitoring"); Names[index] = name; } @@ -131,7 +131,7 @@ public: static size_t GetIndex(const EnumT key) { ui32 index = static_cast<ui32>(key); - Y_VERIFY(index < Enum2Index.size()); + Y_ABORT_UNLESS(index < Enum2Index.size()); return Enum2Index[index]; } |