[CP] [4_2_x]fix white_list match error

This commit is contained in:
zhjc1124
2023-11-01 13:09:11 +00:00
committed by ob-robot
parent 910036962d
commit 3f8c7213fb
14 changed files with 498 additions and 436 deletions

View File

@ -70,8 +70,9 @@ int ObExprIsServingTenant::check_serving_tenant(
} else if (OB_FAIL(ui_getter.get_tenant_servers(tenant_id, servers))) {
LOG_WARN("fail to get servers of a tenant", K(ret));
} else if (false == svr.set_ip_addr(ip, static_cast<int32_t>(port))) {
ret = OB_ERR_UNEXPECTED;
ret = OB_INVALID_ARGUMENT;
LOG_WARN("fail to set ip addr", K(ret), K(ip), K(port));
LOG_USER_ERROR(OB_INVALID_ARGUMENT, "invalid ip or port");
} else {
bool found_server = false;
for (int64_t i = 0; OB_SUCC(ret) && false == found_server && i < servers.count(); ++i) {