fix meta cache and fix problem about table store serialize size exceeds 2MB

This commit is contained in:
Fengjingkun
2023-11-28 17:16:14 +00:00
committed by ob-robot
parent c9d2d3bdf5
commit 6a7028aafc
13 changed files with 438 additions and 271 deletions

View File

@ -300,7 +300,9 @@ int ObTenantCompactionMemPool::init()
} else {
chunk_allocator_.set_tenant_id(MTL_ID());
piece_allocator_.set_tenant_id(MTL_ID());
max_block_num_ = MAX_MEMORY_LIMIT / ObCompactionBufferChunk::DEFAULT_BLOCK_SIZE;
max_block_num_ = MTL_IS_MINI_MODE()
? MAX_MEMORY_LIMIT / ObCompactionBufferChunk::DEFAULT_BLOCK_SIZE
: MAX_MEMORY_LIMIT / (ObCompactionBufferChunk::DEFAULT_BLOCK_SIZE * 2);
total_block_num_ = 0;
is_inited_ = true;
}