diff options
author | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-11 11:37:11 +0300 |
---|---|---|
committer | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-11 12:38:46 +0300 |
commit | 15c8576b07a44515322e3819b8936146cd72651e (patch) | |
tree | e2ff70c0b674c710535cddbbde81cff645681d1f /library/cpp | |
parent | 373945556deb62b705de085fa701a0f0e44acd25 (diff) | |
download | ydb-15c8576b07a44515322e3819b8936146cd72651e.tar.gz |
Y_VERIFY->Y_ABORT_UNLESS tail2
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/actors/prof/tag.h | 2 | ||||
-rw-r--r-- | library/cpp/logger/global/rty_formater.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/actors/prof/tag.h b/library/cpp/actors/prof/tag.h index 8549b34e352..1624d9d1e0f 100644 --- a/library/cpp/actors/prof/tag.h +++ b/library/cpp/actors/prof/tag.h @@ -13,7 +13,7 @@ namespace NProfiling { ui32 MakeTag(const char* s); - // Make only unique tags. Y_VERIFY inside. + // Make only unique tags. Y_ABORT_UNLESS inside. ui32 MakeTags(const TVector<const char*>& ss); const char* GetTag(ui32 tag); diff --git a/library/cpp/logger/global/rty_formater.cpp b/library/cpp/logger/global/rty_formater.cpp index 66657e71621..f5035650c7e 100644 --- a/library/cpp/logger/global/rty_formater.cpp +++ b/library/cpp/logger/global/rty_formater.cpp @@ -22,7 +22,7 @@ namespace { pos += strftime(pos, end - pos, "%Y-%m-%d %H:%M:%S.", &tm); pos += sprintf(pos, "%03" PRIu32, instant.MilliSecondsOfSecond()); pos += strftime(pos, end - pos, " %z", &tm); - Y_ABORT_UNLESS(LocalTimeSBufferSize - 1 == pos - begin); // together with Y_VERIFY above this also implies pos<=end + Y_ABORT_UNLESS(LocalTimeSBufferSize - 1 == pos - begin); // together with Y_ABORT_UNLESS above this also implies pos<=end return (pos - begin); } } |