[SCN] fix farm failure

This commit is contained in:
obdev
2022-11-28 02:58:33 +00:00
committed by ob-robot
parent 87a9357186
commit 51de5b5911
594 changed files with 9722 additions and 7770 deletions

View File

@ -110,16 +110,9 @@ int ObUserProfileResolver::fill_arg(int64_t type, ObObj &value, obrpc::ObProfile
}
}
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));
}
if (OB_SUCC(ret) &&
OB_FAIL(arg.schema_.set_value(type, schema_value))) {
LOG_WARN("fail to set schema value", K(ret));
}
return ret;
}