fix several bugs

This commit is contained in:
chaser-ch
2023-11-08 18:39:15 +00:00
committed by ob-robot
parent 5619db4169
commit dfaa48e176
5 changed files with 7 additions and 7 deletions

View File

@ -201,7 +201,7 @@ int ObTenantCompactionMemPool::mtl_init(ObTenantCompactionMemPool* &mem_pool)
} else if (OB_ISNULL(malloc_allocator = ObMallocAllocator::get_instance())) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("get null malloc allocator, cannnot reserve memory for mini compaction", K(ret), K(tenant_id));
} else if (OB_FAIL(malloc_allocator->set_tenant_ctx_idle(tenant_id, ObCtxIds::MERGE_RESERVE_CTX_ID, RESERVE_MEM_SIZE, true/*reserve*/))) {
} else if (OB_FAIL(malloc_allocator->set_tenant_ctx_idle(tenant_id, ObCtxIds::MERGE_RESERVE_CTX_ID, RESERVE_MEM_SIZE, !MTL_IS_MINI_MODE()/*reserve*/))) {
LOG_WARN("failed to reserve memory for mini compaction", K(ret));
} else {
mem_pool->reserve_mode_signal_ = 1;