aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream
diff options
context:
space:
mode:
authorilnurkh <ilnurkh@yandex-team.com>2023-10-10 10:09:12 +0300
committerilnurkh <ilnurkh@yandex-team.com>2023-10-10 10:26:34 +0300
commit335c640261b6272bc052a251d9b8780150090b45 (patch)
tree7d4a4954aacb63514087edaaf1cd0c9999fcb94d /util/stream
parentb359f0072dbc794d0287c26984dd0ea0a2c27efc (diff)
downloadydb-335c640261b6272bc052a251d9b8780150090b45.tar.gz
Y_VERIFY->Y_ABORT_UNLESS at ^u
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'util/stream')
-rw-r--r--util/stream/buffer.cpp4
-rw-r--r--util/stream/buffered.cpp2
-rw-r--r--util/stream/str.cpp4
3 files changed, 5 insertions, 5 deletions
diff --git a/util/stream/buffer.cpp b/util/stream/buffer.cpp
index d46a4e6c0b..ac4c85f288 100644
--- a/util/stream/buffer.cpp
+++ b/util/stream/buffer.cpp
@@ -21,7 +21,7 @@ public:
}
inline void DoUndo(size_t len) {
- Y_VERIFY(len <= Data_.Size(), "trying to undo more bytes than actually written");
+ Y_ABORT_UNLESS(len <= Data_.Size(), "trying to undo more bytes than actually written");
Data_.Resize(Data_.size() - len);
}
@@ -114,6 +114,6 @@ size_t TBufferInput::DoNext(const void** ptr, size_t len) {
}
void TBufferInput::DoUndo(size_t len) {
- Y_VERIFY(len <= Readed_);
+ Y_ABORT_UNLESS(len <= Readed_);
Readed_ -= len;
}
diff --git a/util/stream/buffered.cpp b/util/stream/buffered.cpp
index a00e592e1c..c7d6647ec1 100644
--- a/util/stream/buffered.cpp
+++ b/util/stream/buffered.cpp
@@ -174,7 +174,7 @@ public:
}
inline void Undo(size_t len) {
- Y_VERIFY(len <= Stored(), "trying to undo more bytes than actually written");
+ Y_ABORT_UNLESS(len <= Stored(), "trying to undo more bytes than actually written");
MemOut_.Undo(len);
}
diff --git a/util/stream/str.cpp b/util/stream/str.cpp
index 13f0e8ef28..a0c3b1c75c 100644
--- a/util/stream/str.cpp
+++ b/util/stream/str.cpp
@@ -12,7 +12,7 @@ size_t TStringInput::DoNext(const void** ptr, size_t len) {
}
void TStringInput::DoUndo(size_t len) {
- Y_VERIFY(len <= Pos_);
+ Y_ABORT_UNLESS(len <= Pos_);
Pos_ -= len;
}
@@ -29,7 +29,7 @@ size_t TStringOutput::DoNext(void** ptr) {
}
void TStringOutput::DoUndo(size_t len) {
- Y_VERIFY(len <= S_->size(), "trying to undo more bytes than actually written");
+ Y_ABORT_UNLESS(len <= S_->size(), "trying to undo more bytes than actually written");
S_->resize(S_->size() - len);
}