[CP] don't check user exists in check_dcl_on_inner_user

This commit is contained in:
jingtaoye35
2024-06-17 15:35:44 +00:00
committed by ob-robot
parent 73aece8683
commit 92c3a86815

View File

@ -322,10 +322,12 @@ int ObDCLResolver::check_dcl_on_inner_user(const ObItemType &type,
host_name,
user_id))) {
if (OB_USER_NOT_EXIST == ret) {
ret = OB_ERR_USER_OR_ROLE_DOES_NOT_EXIST;
LOG_USER_ERROR(OB_ERR_USER_OR_ROLE_DOES_NOT_EXIST, user_name.length(), user_name.ptr());
// do not check user exists here
ret = OB_SUCCESS;
LOG_TRACE("user is not exists", K(user_name), K(host_name));
} else {
LOG_WARN("failed to get user id", K(ret), K(user_name));
}
LOG_WARN("failed to get user id", K(ret), K(user_name));
}
if (OB_SUCC(ret)) {
if (OB_SYS_USER_ID == user_id ||