aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/containers
diff options
context:
space:
mode:
authorilnurkh <ilnurkh@yandex-team.com>2023-10-17 08:15:44 +0300
committerilnurkh <ilnurkh@yandex-team.com>2023-10-17 09:00:07 +0300
commit784925324fd115c37bc98c5bbfe64c15f9966d74 (patch)
treef763f6eaacfcd4757d249977aaddfa4e9b2a355b /library/cpp/containers
parentd6c75d9ec33559b29eb61a8f2e17cbca30fd5ae2 (diff)
downloadydb-784925324fd115c37bc98c5bbfe64c15f9966d74.tar.gz
Y_FAIL->Y_ABORT at '^li'
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/containers')
-rw-r--r--library/cpp/containers/concurrent_hash/concurrent_hash.h2
-rw-r--r--library/cpp/containers/stack_vector/stack_vec.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/containers/concurrent_hash/concurrent_hash.h b/library/cpp/containers/concurrent_hash/concurrent_hash.h
index 2c0f68cd8cb..88da30fd78d 100644
--- a/library/cpp/containers/concurrent_hash/concurrent_hash.h
+++ b/library/cpp/containers/concurrent_hash/concurrent_hash.h
@@ -96,7 +96,7 @@ public:
TBucket& bucket = GetBucketForKey(key);
TGuard<TLock> guard(bucket.Mutex);
if (!bucket.Map.insert(std::make_pair(key, value)).second) {
- Y_FAIL("non-unique key");
+ Y_ABORT("non-unique key");
}
}
diff --git a/library/cpp/containers/stack_vector/stack_vec.h b/library/cpp/containers/stack_vector/stack_vec.h
index 25a8658fd3c..b6036059b26 100644
--- a/library/cpp/containers/stack_vector/stack_vec.h
+++ b/library/cpp/containers/stack_vector/stack_vec.h
@@ -64,7 +64,7 @@ namespace NPrivate {
return reinterpret_cast<T*>(&StackBasedStorage[0]);
} else {
if constexpr (!UseFallbackAlloc) {
- Y_FAIL(
+ Y_ABORT(
"Stack storage overflow. Capacity: %d, requested: %d", (int)CountOnStack, int(n));
}
return FallbackAllocator().allocate(n);