From ef45b416d9ca66724ec0efeebbc81af9600fb815 Mon Sep 17 00:00:00 2001 From: obdev Date: Thu, 5 Jan 2023 07:41:56 +0000 Subject: [PATCH] [Fix].dec bucket_num of macro_id_set in index_rebuilder --- src/storage/blocksstable/ob_index_block_builder.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/storage/blocksstable/ob_index_block_builder.cpp b/src/storage/blocksstable/ob_index_block_builder.cpp index 310328e421..8cacd7c316 100644 --- a/src/storage/blocksstable/ob_index_block_builder.cpp +++ b/src/storage/blocksstable/ob_index_block_builder.cpp @@ -2283,11 +2283,12 @@ void ObIndexBlockRebuilder::reset() int ObIndexBlockRebuilder::init(ObSSTableIndexBuilder &sstable_builder) { int ret = OB_SUCCESS; - const int64_t bucket_num = 5011; + const int64_t bucket_num = 109; if (OB_UNLIKELY(is_inited_)) { ret = OB_INIT_TWICE; STORAGE_LOG(WARN, "ObIndexBlockRebuilder has been inited", K(ret)); - } else if (OB_FAIL(macro_id_set_.create(bucket_num))) { + } else if (OB_FAIL(macro_id_set_.create( + bucket_num, ObModIds::OB_HASH_BUCKET, ObModIds::OB_HASH_BUCKET, MTL_ID()))) { STORAGE_LOG(WARN, "fail to create macro id set", K(ret)); } else if (OB_FAIL(sstable_builder.init_builder_ptrs(sstable_builder_, index_store_desc_, sstable_allocator_, root_micro_block_desc_, macro_meta_list_))) {