diff options
author | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-16 20:19:28 +0300 |
---|---|---|
committer | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-16 20:52:22 +0300 |
commit | 23b4cd86157da8b9f0f8acd5ef46acfab39669db (patch) | |
tree | 09572627315c6029e0434702e8330c557476ff06 /library/cpp/monlib/encode | |
parent | 05d934cd8bfcf7ce4b6241d6bd2914cc776877f9 (diff) | |
download | ydb-23b4cd86157da8b9f0f8acd5ef46acfab39669db.tar.gz |
Y_VERIFY_DEBUG->Y_DEBUG_ABORT_UNLESS at '-v ydb'
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/monlib/encode')
-rw-r--r-- | library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp b/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp index 29441c88c3..d37961a241 100644 --- a/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp +++ b/library/cpp/monlib/encode/prometheus/prometheus_decoder.cpp @@ -426,7 +426,7 @@ namespace NMonitoring { } TStringBuf ReadToken() { - Y_VERIFY_DEBUG(CurrentPos_ > 0); + Y_DEBUG_ABORT_UNLESS(CurrentPos_ > 0); size_t begin = CurrentPos_ - 1; // read first byte again while (HasRemaining() && !IsSpace(CurrentByte_) && CurrentByte_ != '\n') { ReadNextByteUnsafe(); @@ -439,7 +439,7 @@ namespace NMonitoring { return ""; } - Y_VERIFY_DEBUG(CurrentPos_ > 0); + Y_DEBUG_ABORT_UNLESS(CurrentPos_ > 0); size_t begin = CurrentPos_ - 1; // read first byte again while (HasRemaining()) { ReadNextByteUnsafe(); @@ -455,7 +455,7 @@ namespace NMonitoring { return ""; } - Y_VERIFY_DEBUG(CurrentPos_ > 0); + Y_DEBUG_ABORT_UNLESS(CurrentPos_ > 0); size_t begin = CurrentPos_ - 1; // read first byte again while (HasRemaining()) { ReadNextByteUnsafe(); @@ -506,7 +506,7 @@ namespace NMonitoring { } TStringBuf TokenFromPos(size_t begin) { - Y_VERIFY_DEBUG(CurrentPos_ > begin); + Y_DEBUG_ABORT_UNLESS(CurrentPos_ > begin); size_t len = CurrentPos_ - begin - 1; if (len == 0) { return {}; |