Fix the memory bloat issue with the sort operator in the rescan scenario.

This commit is contained in:
GongYusen
2025-03-18 06:16:11 +00:00
committed by ob-robot
parent 00e751993b
commit f80d43e01a
2 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public:
selector_(nullptr), selector_size_(0), sort_prefix_rows_(0), prefix_pos_(0),
im_sk_store_(&allocator_), im_addon_store_(&allocator_),
im_sk_rows_(nullptr), im_addon_rows_(nullptr), immediate_pos_(0),
brs_(nullptr)
brs_(nullptr), brs_holder_(&allocator_)
{}
virtual ~ObPrefixSortVecImpl()
{

View File

@ -21,6 +21,7 @@ void ObPrefixSortVecImpl<Compare, Store_Row, has_addon>::reset()
full_sk_collations_ = nullptr;
base_sk_collations_.reset();
brs_holder_.reset();
brs_holder_.destroy();
next_prefix_row_ = nullptr;
prev_row_ = nullptr;
child_ = nullptr;