This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push: new e9cfbb56b38 [bugfix](becore) use after free problem when the segment is pop (#41685) (#41697) e9cfbb56b38 is described below commit e9cfbb56b38c79ed13db40ab290b201da6a34a97 Author: yiguolei <676222...@qq.com> AuthorDate: Fri Oct 11 14:07:46 2024 +0800 [bugfix](becore) use after free problem when the segment is pop (#41685) (#41697) ## Proposed changes pick #41685 Issue Number: close #xxx introduced by #41608 <!--Describe your changes.--> ## Proposed changes Issue Number: close #xxx <!--Describe your changes.--> Co-authored-by: yiguolei <yiguo...@gmail.com> --- be/src/olap/segment_loader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/olap/segment_loader.h b/be/src/olap/segment_loader.h index f2626f0cec5..2ac5a63132a 100644 --- a/be/src/olap/segment_loader.h +++ b/be/src/olap/segment_loader.h @@ -166,7 +166,7 @@ public: if (segments.empty()) { return nullptr; } - auto& last_segment = segments.back(); + segment_v2::SegmentSharedPtr last_segment = segments.back(); if (last_segment->healthy_status().ok()) { return nullptr; } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org