Skip to content

Commit

Permalink
[fix](memtable) do not reset arena in to_block()
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijchen committed Jan 14, 2025
1 parent ef18747 commit 0be9369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions be/src/olap/memtable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,8 +629,8 @@ Status MemTable::_to_block(std::unique_ptr<vectorized::Block>* res) {
RETURN_IF_ERROR(_sort_by_cluster_keys());
}
_input_mutable_block.clear();
// After to block, all data in arena is saved in the block
_arena.reset();
// DORIS-18080. Do not reset _arena, it is still used in ~MemTable()
// at _agg_functions[i]->destroy((*it)->agg_places(i));
*res = vectorized::Block::create_unique(_output_mutable_block.to_block());
return Status::OK();
}
Expand Down

0 comments on commit 0be9369

Please sign in to comment.