Skip to content

Commit

Permalink
[bugfix](becore) use after free problem when the segment is pop (#41685
Browse files Browse the repository at this point in the history
…) (#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 <yiguolei@gmail.com>
  • Loading branch information
yiguolei and Doris-Extras authored Oct 11, 2024
1 parent 8c0f73c commit e9cfbb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/olap/segment_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class SegmentCacheHandle {
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;
}
Expand Down

0 comments on commit e9cfbb5

Please sign in to comment.