[CP] update_tenant_memory after create_tenant instantly
This commit is contained in:
parent
68730a8bc2
commit
48881afc22
@ -398,10 +398,15 @@ int ObTenantNodeBalancer::check_new_tenant(
|
||||
LOG_WARN("fail to create new tenant", K(ret), K(tenant_id));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret)) {
|
||||
if (OB_ISNULL(tenant)) {
|
||||
ret = omt_->get_tenant(tenant_id, tenant);
|
||||
}
|
||||
int64_t extra_memory = 0;
|
||||
if (is_sys_tenant(tenant_id)) {
|
||||
if (tenant->is_hidden() && OB_FAIL(omt_->convert_hidden_to_real_sys_tenant(unit, abs_timeout_us))) {
|
||||
if (OB_SUCC(ret) && tenant->is_hidden() && OB_FAIL(omt_->convert_hidden_to_real_sys_tenant(unit, abs_timeout_us))) {
|
||||
LOG_WARN("fail to create real sys tenant", K(unit));
|
||||
}
|
||||
extra_memory = GMEMCONF.get_extra_memory();
|
||||
@ -415,6 +420,7 @@ int ObTenantNodeBalancer::check_new_tenant(
|
||||
LOG_ERROR("fail to update tenant memory", K(ret), K(tenant_id));
|
||||
}
|
||||
}
|
||||
|
||||
if (OB_SUCC(ret) && !is_virtual_tenant_id(tenant_id)) {
|
||||
if (OB_FAIL(omt_->modify_tenant_io(tenant_id, unit.config_))) {
|
||||
LOG_WARN("modify tenant io config failed", K(ret), K(tenant_id), K(unit.config_));
|
||||
|
Loading…
x
Reference in New Issue
Block a user