[scn] fix failure of mittest after refresh feature scn

This commit is contained in:
obdev
2022-11-28 01:46:42 +00:00
committed by ob-robot
parent 49a02f3304
commit 54b64a7263
1898 changed files with 255804 additions and 280809 deletions

View File

@ -110,9 +110,16 @@ int ObUserProfileResolver::fill_arg(int64_t type, ObObj &value, obrpc::ObProfile
}
}
if (OB_SUCC(ret) &&
OB_FAIL(arg.schema_.set_value(type, schema_value))) {
LOG_WARN("fail to set schema value", K(ret));
if (OB_SUCC(ret)) {
if (GET_MIN_CLUSTER_VERSION() < CLUSTER_VERSION_2276 &&
(type == ObProfileSchema::PASSWORD_LIFE_TIME ||
type == ObProfileSchema::PASSWORD_GRACE_TIME)) {
ret = OB_NOT_SUPPORTED;
LOG_WARN("not support profile type", K(type));
LOG_USER_ERROR(OB_NOT_SUPPORTED, "specified profile type");
} else if (OB_FAIL(arg.schema_.set_value(type, schema_value))) {
LOG_WARN("fail to set schema value", K(ret));
}
}
return ret;
}