From 01cb42172663263c52b7d07657b00e6a30753bdd Mon Sep 17 00:00:00 2001 From: Yongqiang YANG Date: Fri, 29 Aug 2025 21:11:03 +0800 Subject: [PATCH] [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 b30f5041fd6a6e..a956a24323b416 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("Can't find key in the segment"); + return Status::Error(""); } bool exact_match = false; std::unique_ptr index_iterator; @@ -823,7 +823,7 @@ Status Segment::lookup_row_key(const Slice& key, const TabletSchema* latest_sche return st; } if (st.is() || (!has_seq_col && !has_rowid && !exact_match)) { - return Status::Error("Can't find key in the segment"); + return Status::Error(""); } 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("Can't find key in the segment"); + return Status::Error(""); } 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("Can't find key in the segment"); + return Status::Error(""); } } // found the key, use rowid in pk index if necessary.