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/containers/concurrent_hash | |
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/containers/concurrent_hash')
-rw-r--r-- | library/cpp/containers/concurrent_hash/concurrent_hash.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/containers/concurrent_hash/concurrent_hash.h b/library/cpp/containers/concurrent_hash/concurrent_hash.h index 042bf0c0409..2c0f68cd8cb 100644 --- a/library/cpp/containers/concurrent_hash/concurrent_hash.h +++ b/library/cpp/containers/concurrent_hash/concurrent_hash.h @@ -39,19 +39,19 @@ public: const V& GetUnsafe(const K& key) const { typename TActualMap::const_iterator it = Map.find(key); - Y_VERIFY(it != Map.end(), "not found by key"); + Y_ABORT_UNLESS(it != Map.end(), "not found by key"); return it->second; } V& GetUnsafe(const K& key) { typename TActualMap::iterator it = Map.find(key); - Y_VERIFY(it != Map.end(), "not found by key"); + Y_ABORT_UNLESS(it != Map.end(), "not found by key"); return it->second; } V RemoveUnsafe(const K& key) { typename TActualMap::iterator it = Map.find(key); - Y_VERIFY(it != Map.end(), "removing non-existent key"); + Y_ABORT_UNLESS(it != Map.end(), "removing non-existent key"); V r = std::move(it->second); Map.erase(it); return r; |