This is an automated email from the ASF dual-hosted git repository. kxiao pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/doris.git
commit db1145d6a47ab944ad598f0c67651bf2749d047d Author: Kang <[email protected]> AuthorDate: Thu Aug 31 00:02:38 2023 +0800 Revert "[improvement](compaction) reduce the memory using on vertical compaction (#23388)" This reverts commit 453663602592659cb6c35a786335cc1e67aa6824. --- be/src/olap/primary_key_index.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/be/src/olap/primary_key_index.cpp b/be/src/olap/primary_key_index.cpp index ea14ec3612..de26c4eca3 100644 --- a/be/src/olap/primary_key_index.cpp +++ b/be/src/olap/primary_key_index.cpp @@ -78,13 +78,7 @@ Status PrimaryKeyIndexBuilder::finalize(segment_v2::PrimaryKeyIndexMetaPB* meta) // finish bloom filter index RETURN_IF_ERROR(_bloom_filter_index_builder->flush()); - uint64_t start_size = _file_writer->bytes_appended(); - RETURN_IF_ERROR( - _bloom_filter_index_builder->finish(_file_writer, meta->mutable_bloom_filter_index())); - _disk_size += _file_writer->bytes_appended() - start_size; - _primary_key_index_builder.reset(nullptr); - _bloom_filter_index_builder.reset(nullptr); - return Status::OK(); + return _bloom_filter_index_builder->finish(_file_writer, meta->mutable_bloom_filter_index()); } Status PrimaryKeyIndexReader::parse_index(io::FileReaderSPtr file_reader, --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
