diff options
| author | ilnurkh <[email protected]> | 2023-10-16 20:19:28 +0300 |
|---|---|---|
| committer | ilnurkh <[email protected]> | 2023-10-16 20:52:22 +0300 |
| commit | 23b4cd86157da8b9f0f8acd5ef46acfab39669db (patch) | |
| tree | 09572627315c6029e0434702e8330c557476ff06 /library/cpp/monlib/metrics/atomics_array.h | |
| parent | 05d934cd8bfcf7ce4b6241d6bd2914cc776877f9 (diff) | |
Y_VERIFY_DEBUG->Y_DEBUG_ABORT_UNLESS at '-v ydb'
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/monlib/metrics/atomics_array.h')
| -rw-r--r-- | library/cpp/monlib/metrics/atomics_array.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/monlib/metrics/atomics_array.h b/library/cpp/monlib/metrics/atomics_array.h index 4a26c8186a3..876c167938b 100644 --- a/library/cpp/monlib/metrics/atomics_array.h +++ b/library/cpp/monlib/metrics/atomics_array.h @@ -18,7 +18,7 @@ namespace NMonitoring { } ui64 operator[](size_t index) const noexcept { - Y_VERIFY_DEBUG(index < Size_); + Y_DEBUG_ABORT_UNLESS(index < Size_); return Values_[index].load(std::memory_order_relaxed); } @@ -27,7 +27,7 @@ namespace NMonitoring { } void Add(size_t index, ui64 count) noexcept { - Y_VERIFY_DEBUG(index < Size_); + Y_DEBUG_ABORT_UNLESS(index < Size_); Values_[index].fetch_add(count, std::memory_order_relaxed); } |
