[FEAT MERGE] Add anti-fallback checks for the memory of 500 tenant
This commit is contained in:
@ -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();
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user