This is an automated email from the ASF dual-hosted git repository.

morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new 7007e121e58 branch-3.1: [opt](mow) do not capture stack to reduce cpu 
#55368 (#55526)
7007e121e58 is described below

commit 7007e121e58f6240f65c2dc0ffda5ee5c497ec02
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Sep 4 14:34:55 2025 +0800

    branch-3.1: [opt](mow) do not capture stack to reduce cpu #55368 (#55526)
    
    Cherry-picked from #55368
    
    Co-authored-by: Yongqiang YANG <[email protected]>
---
 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 b30f5041fd6..a956a24323b 100644
--- a/be/src/olap/rowset/segment_v2/segment.cpp
+++ b/be/src/olap/rowset/segment_v2/segment.cpp
@@ -813,7 +813,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;
@@ -823,7 +823,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 = index_iterator->get_current_ordinal();
     row_location->segment_id = _segment_id;
@@ -850,7 +850,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) {
@@ -870,7 +870,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]

Reply via email to