[CP] don't check user exists in check_dcl_on_inner_user
This commit is contained in:
@ -322,11 +322,13 @@ int ObDCLResolver::check_dcl_on_inner_user(const ObItemType &type,
|
|||||||
host_name,
|
host_name,
|
||||||
user_id))) {
|
user_id))) {
|
||||||
if (OB_USER_NOT_EXIST == ret) {
|
if (OB_USER_NOT_EXIST == ret) {
|
||||||
ret = OB_ERR_USER_OR_ROLE_DOES_NOT_EXIST;
|
// do not check user exists here
|
||||||
LOG_USER_ERROR(OB_ERR_USER_OR_ROLE_DOES_NOT_EXIST, user_name.length(), user_name.ptr());
|
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_SUCC(ret)) {
|
||||||
if (OB_SYS_USER_ID == user_id ||
|
if (OB_SYS_USER_ID == user_id ||
|
||||||
OB_ORA_SYS_USER_ID == user_id ||
|
OB_ORA_SYS_USER_ID == user_id ||
|
||||||
|
|||||||
Reference in New Issue
Block a user