[FEAT MERGE] Add anti-fallback checks for the memory of 500 tenant

This commit is contained in:
obdev
2023-04-25 02:41:25 +00:00
committed by ob-robot
parent c317071f7e
commit fdcaa9a932
135 changed files with 936 additions and 660 deletions

View File

@ -60,6 +60,7 @@ int ObMemstoreAllocatorMgr::get_tenant_memstore_allocator(const uint64_t tenant_
ObMemAttr attr;
attr.tenant_id_ = OB_SERVER_TENANT_ID;
attr.label_ = ObModIds::OB_MEMSTORE_ALLOCATOR;
SET_USE_500(attr);
void *buf = ob_malloc(sizeof(TAllocator), attr);
if (NULL != buf) {
TAllocator *allocator = new (buf) TAllocator();

View File

@ -113,6 +113,7 @@ int ObTenantMutilAllocatorMgr::construct_allocator_(const uint64_t tenant_id,
OB_LOG(WARN, "invalid arguments", K(ret), K(tenant_id));
} else {
ObMemAttr attr(OB_SERVER_TENANT_ID, ObModIds::OB_TENANT_MUTIL_ALLOCATOR);
SET_USE_500(attr);
void *buf = ob_malloc(sizeof(TMA), attr);
if (NULL == buf) {
ret = OB_ALLOCATE_MEMORY_FAILED;