Make enable_system_tenant_memory_limit take effect dynamicly

This commit is contained in:
obdev
2023-06-26 00:43:11 +00:00
committed by ob-robot
parent 76134a4ff4
commit 0acbec120f
7 changed files with 44 additions and 9 deletions

View File

@ -1717,11 +1717,6 @@ int ObServer::init_config()
LOG_ERROR("some config setting is not valid", KR(ret));
} else if (OB_FAIL(GMEMCONF.reload_config(config_))) {
LOG_ERROR("reload memory config failed", KR(ret));
#ifdef ENABLE_500_MEMORY_LIMIT
} else if (config_._enable_system_tenant_memory_limit &&
OB_FAIL(ObMallocAllocator::get_instance()->set_500_tenant_limit())) {
LOG_ERROR("set the limit of tenant 500 failed", KR(ret));
#endif
} else if (!is_arbitration_mode() && OB_FAIL(set_running_mode())) {
LOG_ERROR("set running mode failed", KR(ret));
} else {