This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 2d16c54ac5a [opt](mow) do not capture stack to reduce cpu (#55368)
2d16c54ac5a is described below
commit 2d16c54ac5a39c3599c8552f570777f77dd76613
Author: Yongqiang YANG <[email protected]>
AuthorDate: Fri Aug 29 21:11:03 2025 +0800
[opt](mow) do not capture stack to reduce cpu (#55368)
---
be/src/olap/rowset/segment_v2/segment.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/be/src/olap/rowset/segment_v2/segment.cpp
b/be/src/olap/rowset/segment_v2/segment.cpp
index bff82578012..b29d97efcf8 100644
--- a/be/src/olap/rowset/segment_v2/segment.cpp
+++ b/be/src/olap/rowset/segment_v2/segment.cpp
@@ -834,7 +834,7 @@ Status Segment::lookup_row_key(const Slice& key, const
TabletSchema* latest_sche
DCHECK(_pk_index_reader != nullptr);
if (!_pk_index_reader->check_present(key_without_seq)) {
- return Status::Error<ErrorCode::KEY_NOT_FOUND>("Can't find key in the
segment");
+ return Status::Error<ErrorCode::KEY_NOT_FOUND, false>("");
}
bool exact_match = false;
std::unique_ptr<segment_v2::IndexedColumnIterator> index_iterator;
@@ -844,7 +844,7 @@ Status Segment::lookup_row_key(const Slice& key, const
TabletSchema* latest_sche
return st;
}
if (st.is<ErrorCode::ENTRY_NOT_FOUND>() || (!has_seq_col && !has_rowid &&
!exact_match)) {
- return Status::Error<ErrorCode::KEY_NOT_FOUND>("Can't find key in the
segment");
+ return Status::Error<ErrorCode::KEY_NOT_FOUND, false>("");
}
row_location->row_id =
cast_set<uint32_t>(index_iterator->get_current_ordinal());
row_location->segment_id = _segment_id;
@@ -871,7 +871,7 @@ Status Segment::lookup_row_key(const Slice& key, const
TabletSchema* latest_sche
if (has_seq_col) {
// compare key
if (key_without_seq.compare(sought_key_without_seq) != 0) {
- return Status::Error<ErrorCode::KEY_NOT_FOUND>("Can't find key in
the segment");
+ return Status::Error<ErrorCode::KEY_NOT_FOUND, false>("");
}
if (with_seq_col && segment_has_seq_col) {
@@ -891,7 +891,7 @@ Status Segment::lookup_row_key(const Slice& key, const
TabletSchema* latest_sche
Slice(sought_key.get_data(), sought_key.get_size() -
rowid_length);
// compare key
if (key_without_seq.compare(sought_key_without_rowid) != 0) {
- return Status::Error<ErrorCode::KEY_NOT_FOUND>("Can't find key in
the segment");
+ return Status::Error<ErrorCode::KEY_NOT_FOUND, false>("");
}
}
// found the key, use rowid in pk index if necessary.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]