[FEAT MERGE] Add anti-fallback checks for the memory of 500 tenant
This commit is contained in:
@ -447,11 +447,13 @@ int ObGetAllJobStatusOp::get_next_job_status(ObLoadDataStat *&job_status)
|
||||
int ObGlobalLoadDataStatMap::init()
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
ObMemAttr attr(OB_SERVER_TENANT_ID, ObModIds::OB_SQL_LOAD_DATA);
|
||||
SET_USE_500(attr);
|
||||
if (IS_INIT) {
|
||||
ret = OB_INIT_TWICE;
|
||||
} else if (OB_FAIL(map_.create(bucket_num,
|
||||
ObModIds::OB_SQL_LOAD_DATA,
|
||||
ObModIds::OB_SQL_LOAD_DATA))) {
|
||||
attr,
|
||||
attr))) {
|
||||
ret = OB_ALLOCATE_MEMORY_FAILED;
|
||||
LOG_WARN("create hash table failed", K(ret));
|
||||
} else {
|
||||
@ -526,5 +528,3 @@ OB_SERIALIZE_MEMBER(ObLoadDataGID, id);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user