aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/encode/spack
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/monlib/encode/spack
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/monlib/encode/spack')
-rw-r--r--library/cpp/monlib/encode/spack/compression.cpp4
-rw-r--r--library/cpp/monlib/encode/spack/spack_v1_decoder.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/monlib/encode/spack/compression.cpp b/library/cpp/monlib/encode/spack/compression.cpp
index 5dc6fef960..ab27b533a5 100644
--- a/library/cpp/monlib/encode/spack/compression.cpp
+++ b/library/cpp/monlib/encode/spack/compression.cpp
@@ -361,7 +361,7 @@ namespace NMonitoring {
case ECompression::UNKNOWN:
return nullptr;
}
- Y_FAIL("invalid compression algorithm");
+ Y_ABORT("invalid compression algorithm");
}
THolder<IFramedCompressStream> CompressedOutput(IOutputStream* out, ECompression alg) {
@@ -377,7 +377,7 @@ namespace NMonitoring {
case ECompression::UNKNOWN:
return nullptr;
}
- Y_FAIL("invalid compression algorithm");
+ Y_ABORT("invalid compression algorithm");
}
}
diff --git a/library/cpp/monlib/encode/spack/spack_v1_decoder.cpp b/library/cpp/monlib/encode/spack/spack_v1_decoder.cpp
index 1f445fc80d..384ef456dd 100644
--- a/library/cpp/monlib/encode/spack/spack_v1_decoder.cpp
+++ b/library/cpp/monlib/encode/spack/spack_v1_decoder.cpp
@@ -258,7 +258,7 @@ namespace NMonitoring {
case ETimePrecision::MILLIS:
return TInstant::MilliSeconds(ReadFixed<ui64>());
}
- Y_FAIL("invalid time precision");
+ Y_ABORT("invalid time precision");
}
template <typename T>
@@ -413,7 +413,7 @@ namespace NMonitoring {
case ECompression::UNKNOWN:
return Max<ui8>();
}
- Y_FAIL(); // for GCC
+ Y_ABORT(); // for GCC
}
ECompression DecodeCompression(ui8 byte) {